Skip to content

cloudybay/leaflet-polygon-fillPattern

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 80.0%
  • HTML 20.0%