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

Grid Coordinate Lines on Map #745

Open
drock577 opened this issue Aug 19, 2024 · 2 comments
Open

Grid Coordinate Lines on Map #745

drock577 opened this issue Aug 19, 2024 · 2 comments

Comments

@drock577
Copy link

Is there a way to add grid lines every coordinate degree (controlled by options).
I would like to have coordinates lines on the map every degree (more if zoomed in) so my users know where they are. Especially over water.

@systemed
Copy link
Owner

This is probably something you want to implement as a GeoJSON overlay layer in your client (Maplibre GL or similar) rather than baking into your vector tiles. But if you do want to add the grid lines directly into your vector tiles, you could do this by creating a GeoJSON or shapefile and adding that to your config.json.

@geoneutrino
Copy link

@drock577 depends on what you want. As systemed mentioned if it is only visualisation the buzzword to search for is "graticule" + your map client. Eg. for maplibre this looks similar to your request (never used it myself)
https://github.com/kaditya97/maplibre-graticule demo https://kaditya97.github.io/maplibre-graticule/

If you need to integrate this into the raw data due to some reasons these shapefiles might help
https://github.com/nvkelso/natural-earth-vector/tree/master/50m_physical/ne_50m_graticules_all
=> 1,5,10,15,20,30 degree grids

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

3 participants