Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Does anyone has a custom field for geo-locations?

default discord avatar
wiesson2 years ago
2

I'd like to have a address search field and a marker that I can point on a location to get the lat/lng coordinates. Does anyone has a custom component to do that?!

  • discord user avatar
    dribbens
    2 years ago

    I'm sure somebody has though I haven't seen it yet.


    I would add a

    type: 'text'

    and is

    admin.hidden: true

    that is populated from a custom

    type: 'ui'

    that integrates with google maps or another 3rd party address/map tool for the address lookup. Then I would use form hooks to set a

    type 'point'

    field and any other fields you want to persist off the data you get in your ui field.


    This would make a nice tidy plugin if anyone is motivated to publish a package.

  • default discord avatar
    wiesson2 years ago

    Thanks! I'll have a look at that

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.