• I’ve got a map containing about 90 markers with messages containing the address.

    Each marker is of the format:

    [leaflet-marker iconUrl="https://site.com/folder/marker.png" lat=12.3456 lng=-0.123456]10 Street Name[/leaflet-marker]

    When the marker is clicked on, the message box appears about 60px above and 10px to the left of the marker.

    Please let me know how I can put the message box directly above and centred with the marker.

Viewing 1 replies (of 1 total)
  • Plugin Contributor hupe13

    (@hupe13)

    You need to specify iconSize and iconAnchor, e.g.
    [leaflet-marker iconUrl="https://site.com/folder/marker.png" iconSize="32,32" iconAnchor="16,16" lat=12.3456 lng=-0.123456]10 Street Name[/leaflet-marker]

    The iconAnchor defines where the marker is. The middle of the marker points to lat/lng in this example.

    See here.

Viewing 1 replies (of 1 total)
  • The topic ‘Marker message position’ is closed to new replies.