-
-
Notifications
You must be signed in to change notification settings - Fork 757
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
Add point-geometry and vector-tile types #800
Conversation
Bundle size report: Size Change: -646 B
ℹ️ View Details
|
@wipfli @birkskyum @astridx Ready for review. |
I think it might fix #790 too, not sure though... |
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.
Looks really good :)
I removed vector-tile from there, it might be that there's a need to add @mapbix/vector-tile, I'm not sure. |
Yes, the IDE. I don't see any compile errors |
Thought it might be some cache, and sure enough restarting vscode fixed it. |
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 for working on this @HarelM. Other than the convert-discrepancy this looks good to me.
I moved one line from camera.js to point convert as it felt like it should be there when migrating to typescript. |
Launch Checklist
Fixes #788
Added
point-geometry
andvector-tile
types packages.Relevant things to consider:
{x:number, y:number}
object, which will break after this, I'm not sure I mind as the docs doesn't really support this. I removed the test around it. I can bring this code back, but it will need an API change of the object that is being sent, which again, feels wrong.Point.ts
and reverted to usepoint-geomerty
sincevector-tile
is using it and I wanted to keep the implementation aligned.register('Point', Point)
, I'm not sure this is a problem, need to check the 1.x branch, but I don't think it was ever there...