Leaflet.label icon indicating copy to clipboard operation
Leaflet.label copied to clipboard

Labels for CircleMarkers too far away from the CircleMarkers themselves

Open changey opened this issue 11 years ago • 1 comments

Hi, thank you for this great plugin! The plugin is awesome but I have an issue when using labels for circlemakers. Labesl for CircleMarkers seem to be too far away from the CircleMarkers themselves as shown in the following link https://dl.dropboxusercontent.com/u/9073574/Screen%20Shot%202013-12-06%20at%2010.42.11%20PM.png . For example, the "CDG" label should be next to the circlemaker in France, but it's all the way in Africa. Does anyone know how to fix this? Thanks!

changey avatar Dec 07 '13 03:12 changey

Have you included the css? Also see https://github.com/Leaflet/Leaflet.label/blob/master/src/Marker.Label.js#L3 to change the anchor for the marker label.

jacobtoye avatar Dec 13 '13 02:12 jacobtoye