Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map is not displayed #576

Closed
tfrancart opened this issue Apr 4, 2024 · 4 comments
Closed

Map is not displayed #576

tfrancart opened this issue Apr 4, 2024 · 4 comments
Assignees
Labels
kind: Bug 🐞 Bug priority: High ⬆️ High-priority issue what: Packaging/Webpack Related to final bundle and webpack config

Comments

@tfrancart
Copy link
Contributor

@antoine37120 I get an error in MapWidget on branch issue-549.
I tried to compile and deployed on a demo page.
The Map does not show up:

image

I get this console error:

Uncaught TypeError: L.PM is undefined
    addInitHooks leaflet-geoman.min.js:1
    callInitHooks leaflet-src.js:359
    initialize leaflet-src.js:3269
    n leaflet-src.js:302
    map leaflet-src.js:4863
    Ae MapWidget.ts:179
    render AddUserInputBtn.ts:21

Console screenshot:

image

@tfrancart
Copy link
Contributor Author

Note : this works in the dev page, but does not work when bundled in Sparnatural through webpack

image

@tfrancart
Copy link
Contributor Author

I suspect this is a conflict of versions between geoman and leaflet ? I tried updating the version in the package.json

@tfrancart tfrancart added priority: High ⬆️ High-priority issue kind: Bug 🐞 Bug what: Packaging/Webpack Related to final bundle and webpack config labels Apr 4, 2024
@tfrancart
Copy link
Contributor Author

@tfrancart
Copy link
Contributor Author

This is an interaction with the Yasr Map display plugin, already fixed by Pascal here : https://github.com/SteinerPascal/plant-twin/blob/master/src/sparnaturalmanager/yasgui/plugins/map-plugin/MapPlugin.ts#L13 - Thanks @SteinerPascal :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: Bug 🐞 Bug priority: High ⬆️ High-priority issue what: Packaging/Webpack Related to final bundle and webpack config
Projects
None yet
Development

No branches or pull requests

2 participants