Skip to main content
100%

Dynamic pattern animation

✓ Published0🌍 Public
KKoGor
Last edited Aug 13, 2014
Created on Aug 13, 2014

This example demonstrates interactive map-based drawing with dynamically animated SVG patterns. Users draw polygons or rectangles on a Leaflet map, selecting between none, diagonalHatch, or diagonalHash pattern fills via a dropdown control. The D3.js library animates the selected patterns—diagonalHatch drops and diagonalHash spins—while a separate toggle applies a blur filter to reveal hardware acceleration differences across browsers. Rendering uses Leaflet’s SVG overlay pane, with controls built through Leaflet’s L.Control extension API.

AI-generated description

Animated SVG pattern on Leaflet map (zoom available). Animation made with help of D3.js. Blur filter added for revealing level of hardware acceleration in different browsers. As we can see perfomance degradation quite unsignificant. Works great in Firefox and webkit based browsers.

Similar vizzes