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

How to use for geospatial data on maps #70

Open
Saumya-NebCodes opened this issue Feb 25, 2023 · 1 comment
Open

How to use for geospatial data on maps #70

Saumya-NebCodes opened this issue Feb 25, 2023 · 1 comment

Comments

@Saumya-NebCodes
Copy link

HI thank you for this great project. I am just wondering can this project can be used for Geospatial data with GPS coordinate on MapLayer like MapBox.

@bmschmidt
Copy link
Collaborator

This is a tricky question I think about a lot. I use this library to turn points into projected geodata all the time e.g., here's a bunch of trees with coordinates in the New York State Plane I made last week, but integrating with any specific mapping library like mapboxGL would require some serious work because mapBoxGL projections are fairly complicated--they allow tilting the view, the projection can change, etc.

When I wanted to integrate a point map with a mapboxGL map myself for a dot density map of US population, I decided this would be too hard, would require too much non-free software, and would require me to use the Mercator projection for the full-US display, which I really don't like. Instead I opted to just put the mapbox map in the lower righthand corner, and then I updated the state of that reference map by looking at the projected coordinates. I also created some custom code for plotting polygons that exists only on a fork of deepscatter.

MapboxGL (and libremapGL, for that matter) does allow vector tiles and point primitives itself that work reasonably well; I don't believe from the time I talked to Mapbox people that they can scale quite as large as deepscatter quite as quickly, but for plotting, say, a few hundred thousand points of geodata they should be more than enough. If you have a use case that requires more, I'm curious what it is!

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

No branches or pull requests

2 participants