Skip to content

Allow GeoJSON to be used with Custom Pane #2028

Closed
@lukefullard

Description

@lukefullard

Is your feature request related to a problem? Please describe.
I can assign a folium marker to a custom pane as in the example below:

import folium
from folium.map import CustomPane
m = folium.Map(location=[51.5074, -0.1278], zoom_start=10)
custom_pane = CustomPane(name='custom_pane', z_index=1000,pointer_events =True)
custom_pane.add_to(m)
marker = folium.Marker([51.5074, -0.1278], popup="This is a custom marker!", pane = "custom_pane")
marker.add_to(m)

However, there is no "pane" argument for folium.GeoJson.
Could this please be added?

Describe the solution you'd like
The ability to add a specific GeoJSON to a custom pane.

Describe alternatives you've considered
I am not sure where to start.

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