mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-07-25 01:32:21 +00:00
Hold element positions in WeakMap (#8749)
This commit is contained in:
@ -66,7 +66,7 @@ title: Grid coordinates
|
||||
const pixelOrigin = map.getPixelOrigin();
|
||||
const markerPixelCoords = map.project(trd, map.getZoom());
|
||||
const markerAnchor = marker.options.icon.options.iconAnchor;
|
||||
const markerOffset = marker._icon._leaflet_pos;
|
||||
const markerOffset = L.DomUtil.getPosition(marker._icon);
|
||||
|
||||
document.getElementById('info').innerHTML =
|
||||
'<div style="color: green">CRS origin: 0,0</div>' +
|
||||
|
Reference in New Issue
Block a user