Demonstrates how to load SVG's as Leaflet icons via the data URI method.
Following was helpful to figure this out:
- Optimizing SVGs in Data URIs
- http://codepen.io/gabrien/pen/NqGvGq
- http://codepen.io/chriscoyier/pen/ZQgvyG/
This block is a modified example taken from Working with spatial data.
Built with blockbuilder.org
forked from enjalot's block: WWSD #1: Leaflet starter
forked from enjalot's block: WWSD #1: Leaflet starter
@clhenrick That's brilliant. Thanks a lot mate. I was pooping around with creating dom objects from my xml string. Didn't even think about encoded URI. Works a treat.
@adelaide01 You can pass anything into icon url used in the LeafletJS icon object. Let me answer your stackoverflow question. I am sure somebody else would have already solved this if posted in the gis stackexchange where all the LeafletJS cracks hang out.
This is what I use to create maps like this: