Skip to content

Replace Githack.com CDN with something else #1307

@CaoHua1203

Description

@CaoHua1203

Please add a code sample or a nbviewer link, copy-pastable if possible

# Your code here

folium_map.add_child(folium.plugins.MeasureControl())

folium.plugins.MousePosition().add_to(folium_map)

Problem description

Since this week, the map could not be shown as previously. There is only a blank map background, but all the markers dispear.

After tracking in html, there are the error alerts.The actions (MeasureControl and MousePosition) are not supported by the object (Map). So the JavaScript is interrupted without running smoothly.

I tried to removed the two plugins, then the markers can be shown again in the map.

Does it mean no MeasureControl or MousePosition can be used in future? Or they should be used in some other ways?

Thanks.

Expected Output

Output of folium.__version__

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions