Leaflet.vector-markers
Leaflet.vector-markers copied to clipboard
leaflet vector support request: leafletjs marker as html div contents instead?
Hi - Your leaflet plugin seems to come the closest to what I'm after, and I wonder if you might push me in the right direction: I am looking to have a proper leaflet marker object as an html div instead of an img png (or vector for that matter). I don't know enough to know for sure, but it seems the library might be tightly bound to the notion of over anything else... thoughts?
Thanks! -Bronius
That shouldn't be a big problem to do. I think you can simply replace the SVG tag with a custom DIV or another HTML tag. Then you style it with CSS. Just keep an eye on the dimensions. In my case I use incode SVG, which is basically the same as html. Have a look at the following line: https://github.com/hiasinho/Leaflet.vector-markers/blob/master/src/Leaflet.vector-markers.coffee#L46-L49