leaflet.deflate

Leaflet JS + Leaflet.Deflate - Changing default marker icon to custom icon

时间秒杀一切 提交于 2019-12-25 08:36:21
问题 In my previous post 'Leaflet JS - changing esri shape into marker on certain zoom level ' I was able to resolve an issue which i had with the leaflet JS library and changing the polygon shapes to markers icons when hitting a certain zoom level. I was advised by 'Ivan Sanchez' to use the 'Leaflet.Deflate' plugin and this works like a charm, so now the various shapes are being transformed into markers after a certain zoomlevel, however now I'm struggling to change the default leaflet marker