Leaflet.pattern
Leaflet.pattern copied to clipboard
Add Leaflet.pattern to class in document head?
Hello,
Thanks for a very useful tool. I'm attempting to add it to a map I've created. However, because of some team constraints, I'd like to add it to a my polygons by class name, rather than generating the polygons with the fillPattern parameter (as in your examples). Is there a way to add this to the class style in the header, or to an object after it's been generated?
For example, if I simply generate a geoJson as: L.geoJson(geojsonFeature).addTo(_map), can I either add the style parameter after the fact or add it to the class to which it belongs?
Thank you!