-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix(mapbox) Remove type dependency on mapbox-gl #9279
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 5 changed files in this pull request and generated no suggestions.
Comments skipped due to low confidence (1)
modules/mapbox/src/mapbox-layer.ts:61
- Using the non-null assertion operator '!' for 'this.map' assumes it is never null or undefined. Ensure 'this.map' is always defined at this point.
drawLayer(this.deck!, this.map!, this);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! We could get surprised by a breaking change if we aren't directly importing from the libraries I suppose, but it's unlikely these interfaces will change much.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should a package.json be changed, or are we still depending on mapbox-gl for something? Nevermind, I just understood your comment about it already being removed.
getFreeCameraOptions?(): FreeCameraOptions; | ||
|
||
// This is not a public property | ||
transform?: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this benefit from typing the properties we do use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Transform classes in mapbox and maplibre are very different, I won't even bother...
f0de611
to
a513cc1
Compare
Closes #9211
Dependency
@types/mapbox-gl
was removed in v9.0 (unintentionally?) by #8204It wouldn't be compatible with maplibre-gl anyways...
Change List