ngx-mapbox-gl icon indicating copy to clipboard operation
ngx-mapbox-gl copied to clipboard

Angular 13 support

Open adnanebrahimi opened this issue 3 years ago • 8 comments

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'

adnanebrahimi avatar Nov 22 '21 07:11 adnanebrahimi

image

vladkasianenko avatar Dec 10 '21 16:12 vladkasianenko

I'm in the same situation.

juanfril avatar Dec 30 '21 06:12 juanfril

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]".

tillkuhn avatar Jan 03 '22 09:01 tillkuhn

This is the only thing limiting my team to migrating to Angular 13. Any plans to address it?

Carniatto avatar Feb 04 '22 16:02 Carniatto

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 avatar Feb 04 '22 16:02 mediantiba

@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!

tillkuhn avatar Feb 05 '22 09:02 tillkuhn

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

sign0 avatar Feb 24 '22 10:02 sign0

Force install doesn't work for me. Any update to this issue?

kylerummens avatar Apr 15 '22 20:04 kylerummens