Plugin Author
hupe13
(@hupe13)
leaflet-geojson uses the syntax with curly braces to get the properties from the geojson elements in the popups. So I will use the same syntax.
I think the way I’ve thought about it now will be perfect (until someone comes up with a new idea). 😉
OK !
I think the way I’ve thought about it now will be perfect (until someone comes up with a new idea).
🙂
Hi,
Thank you for update(s).
But I’m sorry, I don’t really understand how it works. 🙁
This is my usual shortcode :
[overviewmap latlngs=coords_depart icons=marker]
I tried this code, but it doesn’t work (“distance” is an ACF field) :
[overviewmap latlngs=coords_depart icons=marker]{name}{thumbnail}{distance}[/overviewmap]
What should I do ?
Plugin Author
hupe13
(@hupe13)
You can write the whole popup content (with the distance) in a custom field or in an ACF now. Only {permalink}, {title}, {thumbnail}, {categories} and {link} can be with curly brackets and are replaced. Example.
Well, I updated all articles.
Pretty cool now and really useful.
Thank you very much !
https://mymaps.fr/carte-generale/