Skip to content

Update Folium Polygon color without having to re-save the map and re-load the page? #890

@EdwardDeaver

Description

@EdwardDeaver

I'm new to folium, I'm trying to see if my JS Leaflet code would work in folium.

In my JS I have a polygon that when a message comes in updates it's color:
Ex. Polygon (JS)

polygon = L.polygon(latlngs, {color: 'red'}).addTo(mymap);

Then when a message comes through I just:

polygon.setStyle({color: 'purple'});

And it just updates in real time.

Is this possible to do with folium, it seems like folium is meant for static maps not dynamic ones?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThe issue contains a question about how to do something

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions