Skip to content

Add Leaflet.pattern to class in document head? #19

@arthurgailes

Description

@arthurgailes

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions