Hi,
I am trying to change a programmatically added Fieldgroup from Google to your OSM Interface. All Documentation refers to manually doing so and I cant find any information on how to do it in PHP. We just need to store lat/lon values from the backend using a map: With each post the author can just klick on the map and the location is associated with the post. I already browesed the source and so far found the proper type to be open_street_map. But changing just that renders only a line Drag Maker to move but no map. I assume the field-array needs information where to get tiles and stuff than acf's google_map but I can't find the parameters. Here's what I currently have. – Any Idea what else is needed to just get the map showing in the backend?
Hi,
Seems that Your OSM-Field lacks the return_format, max_markers, layers and allow_layers properties.
Here's a field definition (in JSON) that should work:
Hi, I am trying to change a programmatically added Fieldgroup from Google to your OSM Interface. All Documentation refers to manually doing so and I cant find any information on how to do it in PHP. We just need to store lat/lon values from the backend using a map: With each post the author can just klick on the map and the location is associated with the post. I already browesed the source and so far found the proper type to be
open_street_map
. But changing just that renders only a lineDrag Maker to move
but no map. I assume the field-array needs information where to get tiles and stuff than acf'sgoogle_map
but I can't find the parameters. Here's what I currently have. – Any Idea what else is needed to just get the map showing in the backend?Thanks for our input and maybe this post will help others to making the switch.