-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[v8] Align type names with base map libraries #2474
Conversation
| RasterDemSource; | ||
// Sources | ||
AnySourceData as SourceSpecification, | ||
CanvasSourceRaw as CanvasSourceSpecification, |
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.
Can you help me understand why we're aliasing some of these specifications?
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.
This will match type names from @types/mapbox-gl
(unofficial types) with the latest mapbox-gl
official type names.
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.
Ok, I think I get it. This is aliasing mapbox-legacy to the current mapbox.
Edit: And unaliasing maplibre. Current mapbox and maplibre types match names for the most part. Correct?
bf98a3f
to
0cc4544
Compare
Mapbox v3 and Maplibre v5 type naming conventions are mostly the same, aside from actual API difference, and some niche exceptions. |
See upgrade-guide.md
Docs will be updated in a separate PR.