Demonstrates how to load SVG's as Leaflet icons via the data URI method.
Following was helpful to figure this out:
| /** | |
| * depth: 1 - monochrome | |
| * 4 - 4-bit grayscale | |
| * 8 - 8-bit grayscale | |
| * 16 - 16-bit colour | |
| * 32 - 32-bit colour | |
| **/ | |
| function drawArray(arr, depth) { | |
| var offset, height, data, image; |
Demonstrates how to load SVG's as Leaflet icons via the data URI method.
Following was helpful to figure this out: