ngx-mapbox-gl
ngx-mapbox-gl copied to clipboard
Angular 13 support
After updating our Angular version to 13 the mapbox is not working. here is the error:
Error: Failed to find '@mapbox/mapbox-gl-geocoder/lib/mapbox-gl-geocoder.css'
I'm in the same situation.
While 7.1.2
works for me when using most recent Angular 13.1.1
, there are still warnings whenever I update dependencies since the current version constraints don't support Angular >12. Would appreciate if this could be fixed, since Angular 13 has been out for a while now. Thanks!
warning " > [email protected]" has incorrect peer dependency "@angular/[email protected]".
warning " > [email protected]" has incorrect peer dependency "@angular/[email protected]".
This is the only thing limiting my team to migrating to Angular 13. Any plans to address it?
Judging from the commit history of this repo, looks like it's been inactive for some time now. We had the same issue because of the upgrade, however we decided to switch to Google maps which now has an official Angular library and better support overall. For what it's worth, I liked working with Mapbox.
@mediantiba I have the same impression. Can't blame the contributors if they use their free time for something else, but it's really a pity since from a technical point if view it's still running perfectly with Angular 13, and moving to a different framework probably means a big refactoring for lots of projects. Maybe one of the forks keeps maintaining compatibility, I have not checked them yet. Alternatively, a statement from the owner on the long-term prospects of this repo will be much appreciated! EDIT: Just found maplibre/ngx-maplibre-gl, a former fork of this repo that is still active (recent deps are pinned to Angular 13.1.2). It's obviously based on maplibre-gl. Should be worth a try!
Resolved with npm install -f ...
on Angular v13 (without the optional package @mapbox/mapbox-gl-geocoder) :
npm i -s -f install ngx-mapbox-gl mapbox-gl
Force install doesn't work for me. Any update to this issue?