Skip to content
master
Go to file
Code
This branch is 5 commits ahead, 1 commit behind lwsu:master.

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

leaflet-polygon-fillPattern

Extend the Polygon Object to fill SVG Path element with an image pattern.

Check out the demo.

Usage example

var poly1 = [
    [24, 121],
    [24.5, 121],
    [24.5, 121.9],
    [24, 121.9]
];
L.polygon(poly1, {fill:'url(image.gif)'}).addTo(map);

About

Extend the Polygon Object to set an image to fill the path in SVG

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.