Skip to content

Commit f312eb5

Browse files
RogueVortexJeroenDeDauw
authored andcommitted
fix: resolve custom marker popup left-alignment
1 parent af68d4a commit f312eb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resources/leaflet/FeatureBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
iconUrl: properties.icon,
2525
iconSize: [ img.width, img.height ],
2626
iconAnchor: [ img.width / 2, img.height ],
27-
popupAnchor: [ -img.width / 2, -img.height*2/3 ]
27+
popupAnchor: [ 0, -img.height*2/3 ]
2828
});
2929

3030
marker.setIcon(icon);

0 commit comments

Comments
 (0)