Is it possible to remove a shadow from a standard marker in leaflet maps?
The source code for new L.Icon.Default() uses: https://github.com/Leaflet/Leaflet/blob/master/src/layer/marker/Marker.js#L10
new L.Icon.Default()
Thus, this can be achieved as follows:
var icon = new L.Icon.Default(); icon.options.shadowSize = [0,0]; var marker = new L.Marker(map.getCenter(), {icon : icon}).addTo(MyMap);
If you just want a simpler, lighter icon, try using divIcon :
var myIcon = L.divIcon({className: 'my-div-icon'}); // you can set .my-div-icon styles in CSS L.marker([50.505, 30.57], {icon: myIcon}).addTo(map);
Source: https://habr.com/ru/post/970131/More articles:Lifecycle / Navigation Management MediaCapture + CaptureElement - c #ListPickerFlyout ignores RequestedTheme of the parent page in Windows Phone 8.1 - winrt-xamlHow to clear Meteorjs application development design? - meteorConvert double to String with fixed width - c ++Windows Phone 8.1: How to Change ListPickerFlyout Header Text Color - winrt-xamlPython - pandas - add a series to an empty data area - pythonsocket.get () And socket.set () gives problems - node.jsggplot2: legends for different aesthetics - rAdding a natural drag and drop effect to ImageView, just like Facebook Messenger chat puzzles using the Rebound library - springJavascript setMonth showing wrong date - javascriptAll Articles