Is it possible to remove shadow from standard marker in leaflet maps?
In source code new L.Icon.Default()
is used:
https://github.com/Leaflet/Leaflet/blob/master/src/layer/marker/Marker.js#L10
So, it can be achieved following way:
var icon = new L.Icon.Default();
icon.options.shadowSize = [0,0];
var marker = new L.Marker(map.getCenter(), {icon : icon}).addTo(map);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With