ui-mapbox
ui-mapbox copied to clipboard
Markers with dynamic SVG icons
Hi! Thanks for maintaining this plugin.
I have a JavaScript library to dynamically generate icons, which I would like to use as marker icons in my map. These icons are generated as SVG images. As far as I can see, SVG icons (and dynamic icons in general) are not currently supported by ui-mapbox. Would it be possible to add support for SVG icons by passing their XML markup? Or can you give me any pointers on how I can achieve this myself?
Loading image from from res:// or even from any other directory from projects sources works, but it failed when path point to local storage. Im using clustering points and want to load images from backend and then using "icon-image" in symbol feature to point to this image added by mapbox.addImage(), due there is no other way to add image ( adding custom marker is not a solution, or someone know how to create clustered custom markers, url to image looks like is not supported ). For me looks like there is no other way to add custom icons not predefined before application release in case of clustering option. Summarizng, is any possibility to load icons from backend and present them using clustering ?. Workaround can be usage of query features, find unclastered point, and add custom marker to this point, but don't know how to show such custom marker on top of unclastered point ( after try it appears behind it ).