Leaflet.vector-markers icon indicating copy to clipboard operation
Leaflet.vector-markers copied to clipboard

SVG Icon Shadow + Icon Bounce Implementation.

Open SuberFu opened this issue 8 years ago • 1 comments

I have an implementation of an SVG Icon Shadow and Icon Bounce function here that was based off an older release of you VectorMarker library. VectorMarker

I am, however, not sure how implement it into your source, so I'm posting here for your reference. Hope it will help with your SVG shadow implementation.

The basic gist is using the transform attribute on the g svg element to skew and scale original SVG element to make it look like a shadow, and transform the svg and the containing div to realign the base of the shadow.

P.S. The source doesn't look like generic javascript, what exactly is it?

SuberFu avatar Jul 19 '16 21:07 SuberFu

Thanks for that! I'll check it as soon I got time for it. The source is ES6 processed by webpack.

hiasinho avatar Aug 02 '16 04:08 hiasinho