Map Markers from KML File Float on Zoom

Inicio Foros Ultimate Maps Map Markers from KML File Float on Zoom

Etiquetado: , , ,

Viendo 2 entradas - de la 1 a la 2 (de un total de 2)
  • Autor
    Entradas
  • #21774

    webmaster21887
    Participante

    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
    Participante

    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.

Viendo 2 entradas - de la 1 a la 2 (de un total de 2)
  • El debate ‘Map Markers from KML File Float on Zoom’ está cerrado y no admite más respuestas.
Get plugins bundle today and save over 80%