Merge pull request #13098 from cillian/osm-marker-positioning

Specify OpenStreetMap marker size and tip position so they are positioned correctly at all zoom levels
This commit is contained in:
Maikel
2025-01-28 13:40:18 +11:00
committed by GitHub

View File

@@ -13,6 +13,8 @@ angular.module('Darkswarm').directive 'ofnOpenStreetMap', ($window, MapCentreCal
buildMarker = (enterprise, latlng, title) ->
icon = L.icon
iconAnchor: [14, 33]
iconSize: [28, 33]
iconUrl: enterprise.icon
marker = L.marker latlng,
draggable: true,