Quantcast
Channel: Default Leaflet icon is not showing - Geographic Information Systems Stack Exchange
Viewing all articles
Browse latest Browse all 4

Default Leaflet icon is not showing

$
0
0

I want to use default icon provided by leaflet instead of using something else. But unfortunately i am not seeing anything, not even error.

var myIcon = L.icon({            iconUrl: 'my-icon.png',            iconSize: [38, 95],            iconAnchor: [22, 94],            popupAnchor: [-3, -76],            shadowUrl: 'my-icon-shadow.png',            shadowSize: [68, 95],            shadowAnchor: [22, 94]        });        L.marker([50,10], {icon: myIcon}).addTo(this.map);

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images