Skip to content
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

Import style and event types from specific base libraries #2252

Merged
merged 4 commits into from
Aug 18, 2023

Conversation

Pessimistress
Copy link
Collaborator

To account for the divergence between Mapbox and Maplibre styles, this PR stops using @maplibre/maplibre-gl-style-spec for both endpoints. Style and event types are passed in as generics specific to each base map library.

@@ -220,8 +219,8 @@ export type Transform = {
pointLocation: (p: Point) => LngLat;

// Mapbox only
getProjection?: () => Projection;
setProjection?: (projection: Projection) => void;
getProjection?: () => any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any or import from mapbox spec file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently this is mapbox-gl only but maplibre may implement it differently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants