Plugin Author
hupe13
(@hupe13)
You need at least one custom field – for latlng. Herein you put lat and lng in any form, see column latlng-orig and give the custom field a name. The default name is overview-latlng. Then you write
[overviewmap debug latlng=name]
or if you use the default name overview-latlng:
[overviewmap debug]
If it don’t show any errors you can omit debug and the marker are shown on the map:
[leaflet-map fitbounds]
[overviewmap latlng=name]
Does this work?
Yes, ACF fields plugin.
I changed some parameters in ACF, I can see “debug table”, with coordinates, OK.
But no marker on the map. š
-
This reply was modified 2 years, 1 month ago by
chaosad2.
-
This reply was modified 2 years, 1 month ago by
chaosad2.
Plugin Author
hupe13
(@hupe13)
Does it work with ACF fields, or just with classic custom fields ?
I tested it with the classic (default) custom fields only. You mean the ACF plugin? I will test it.
Yes, ACF plugin.
Well, I changed some parameters in ACF and now I can see “debug table”, with coordinates : OK, it seems to work with ACF plugin.
But there’s no marker on the map. š
I can’t see markers, with or without “debug”.
Here is my code :
[overviewmap debug show_thumbnails]
[leaflet-map height=100svh fitbounds]
[hover class=leafext-overview-tooltip]
[zoomhomemap]
[locatecontrol]
[geosearch]
-
This reply was modified 2 years, 1 month ago by
chaosad2.
Plugin Author
hupe13
(@hupe13)
[leaflet-map height=100svh fitbounds]
[overviewmap show_thumbnails]
[hover class=leafext-overview-tooltip]
[zoomhomemap]
[locatecontrol]
[geosearch]
Great !
Thank you for your help !
Plugin Author
hupe13
(@hupe13)
I have a question about ACF: Does the custom field appear on every post / page or it is possible to hide it, if it is empty? It seems, there is the next bug. This does not work correct in my tests.
Well,, I don’t know, because I don’t have any empty custom fields !
All of my fields are automatically filled with calculated gpx datas (as lat and lng, coordinates of the first gpx waypoint of my track).
But in ACF plugin, I can’t see any option to easily hide a field if it’s empty.
One more question after testing overviewmap : what about negative lat or lng ? For these coords, marker is shown just below the map. (you can actually see it on the page I need help with).