I have been trying to place a rotated icon on my markers in Leaflet. The white square in the picture shows where my marker image should be but the blue marker is far from this position. How can I get the blue marker to be placed exactly where the white square is? My Code:
var myIcon = L.divIcon({
html:'<img src="http://ift.tt/1Kv9LiP" id="image">',
});
L.marker([5000.000, 5000.000],{ icon: myIcon }).addTo(map);
Aucun commentaire:
Enregistrer un commentaire