-
-
Notifications
You must be signed in to change notification settings - Fork 328
-
Hi all and sorry if such an issue has been asked before.
I'm trying to convert a React-leaflet example to reactpy. The application starts, but in the browser the javascript console reports, that LayersControl.Overlay is not exported.
How can this problem be solved?
KR
leaflet = web.module_from_template(
"react@^18",
"react-leaflet@^4.2.1", # React bindings
)
MapContainer, TileLayer, Marker, Popup, LayersControl, LayerGroup, Circle, LayersControlOverlay = web.export(
leaflet,
[
"MapContainer",
"TileLayer",
"Marker",
"Popup",
"LayersControl",
"LayerGroup",
"Circle",
"LayersControl.Overlay",
],
)
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
web.module_from_template is deprecated due to instability.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment