-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Does not work with latest version of maplibre-gl-js #25
Comments
@jimbok8 how are you installing / adding Maplibre into your app? I've simply executed
The output made me think at first that I had the same issue as you experience. However, after compiling my code, it's running smoothly. Perhaps you have misspelled the package version? I see you wrote 2.05, and not 2.0.5. For me, this library is working fine with the following Maplibre-gl-js versions: 1.15.2, 2.0.5, 2.0.0 and 2.0.9 |
I'm facing a compilation issue trying to use the plugin with maplibre-gl@2.1.9 due the plugin trying to import MapboxOptions, which maplibre-gl no longer exports:
Any plans to update the plugin? |
It would be great if we could update the plugin. Are you interested in looking into this, @ma7moudat? |
I had a quick go at it. Please have a look at #35 As far as I understood, I just needed to pump up the maplibre-gl version and fix the import, but I took the liberty to update leaflet and the examples as well. Everything seemed to still work while I tested. I did everything as stated in the contribution guide, but unfortunately, running |
@lseelenbinder could you please make sure the fix is available on npm as 0.0.18? I pumped up the version number in package.json, but |
@ma7moudat I need to figure out who's responsible for this repository's releases. I haven't ever run the process, so I'm not sure. 😄 |
@ma7moudat I think this is published now! |
It is; thank you :) |
I can get this library working with all versions of maplibre-gl-js upto and including 2.05.
After that I get TypeError error:
Uncaught TypeError: Cannot read properties of undefined (reading 'Map')
leaflet-maplibre-gl.js:128
I am I doing something wrong, or is there a fundamental change in maplibre-gl-js?
Jim
The text was updated successfully, but these errors were encountered: