Markers are wrong…why?
-
Hello,
I have written a function that created a shortcode for creating a map with 56 markers on it. The shortcode looks like this:
[leaflet-map address=”MyCity” zoom=13] [leaflet-marker address=”Firstname Surname, MyStreet 17, 12345 MyCity, DE”]Firstname Surname
, MyStreet 17, 12345 MyCity[/leaflet-marker] [leaflet-marker address=”AnotherFirstname AnotherSurname, AnotherStreet 18, 12345 AnotherCity, DE”] AnotherFirstname AnotherSurname, AnotherStreet 18, 12345 AnotherCity[/leaflet-marker] … etc. It is written in a string, and later I say echo do_shortcode($str);All the addresses are pulled out of the database, and they are correct. I use the Google Geocoder (set in the Plugin Settings).
There are 57 JavaScript inserts, 1 for the map itself and 56 for the addresses.
The problem is that some markers just do not appear and some appear at the wrong place, and I have no Idea why this is so.
When I copy the address and search for it on Google Maps it shows the right location. Just not on my map.
Why does this happen?
Thanks!
- The topic ‘Markers are wrong…why?’ is closed to new replies.