Home › Forums › Ultimate Maps › Map Markers from KML File Float on Zoom
Tagged: KML, markers, OpenStreetMap, zoom
This topic contains 1 reply, has 1 voice, and was last updated by webmaster21887 3 months, 4 weeks ago.
I have several markers being loaded to a map via KML files, they each have a custom icon, they show up on the map fine.
When I zoom in and out though the markers drift.
The normally placed markers on the same map keep anchored as expected.
I am using: Ultimate Maps Supsystic v 1.0.9 and Ultimate Supsystic PRO 1.0.1.
Engine: Leaflet (OpenStreetMap)
Map Type: Wikepedia Labs No Labels
PHP v 7.2.13
It appears that the issue is that the iconSize option is not being set for the KML markers.
The fix I have come up with is:
ultimate-maps-by-supsystic-pro > kml > js > lib > leaflet
Lines 136 – 145
This is dependent upon a properly formatted <hotSpot> element with “pixel” units being set in the KML.
The topic ‘Map Markers from KML File Float on Zoom’ is closed to new replies.
Or register if you are not registered
Or login if you are already registered