Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

web import JS function not working #1301

Unanswered
mgerald21 asked this question in Question
Discussion options

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",
 ],
)
You must be logged in to vote

Replies: 1 comment

Comment options

web.module_from_template is deprecated due to instability.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /