Custom Point Field

default discord avatar
thacac31330
2 weeks ago
3

Hello all, I'm looking for this for such a long time, but I'm creating a custom field based on the "point" type field which could be fed by clicking a a leaflet map...



I succeeded in creating the map and getting interactions but, I don't find the "basic" point field definition anywhere to use the component in my custom field...do I have to use 2 inputs fields to rebuild a kind of point field?



I thinks there's something I don't uderstand ;/



I'm quite surprised to find se few info about field extension/custo and specially that Point Field... If somebody can help that would be GREEEEAAT 🙂



thanks

  • default discord avatar
    herb3763
    2 weeks ago

    I can't really help but does anything in this help?

    https://payloadcms.com/community-help/github/geospatial-queries-field
  • default discord avatar
    thacac31330
    2 weeks ago

    for info, I made it, some adjustment still on going but I found the trick



    I've a map on which you can click and drag a marker to get the coords in bdd/api



    I think this is a good base to extend with address getter api etc



    this is not under "plugin" yet



    txs to all

  • default discord avatar
    banks0
    3 days ago

    Did you make this public? Im having the same issue



    I want to make a leaflet custom field

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.