Map Markers from KML File Float on Zoom

Home Forums Ultimate Maps Map Markers from KML File Float on Zoom

This topic contains 1 reply, has 1 voice, and was last updated by  webmaster21887 3 months, 4 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21774

    webmaster21887
    Participant

    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
    WordPress 5.1.1

    #21775

    webmaster21887
    Participant

    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

    Changed to:

    This is dependent upon a properly formatted <hotSpot> element with “pixel” units being set in the KML.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Map Markers from KML File Float on Zoom’ is closed to new replies.

Get plugins bundle today and save over 80%