Specify OpenStreetMap marker size and tip position so they are positioned correctly at all zoom levels

This commit is contained in:
Cillian O'Ruanaidh
2025-01-25 12:55:48 +00:00
parent 01036e6321
commit ff7c1e6d1f

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,