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

Add support to map ruler based on configured projection #1963

Open
barcelosleo opened this issue Jun 4, 2024 · 3 comments
Open

Add support to map ruler based on configured projection #1963

barcelosleo opened this issue Jun 4, 2024 · 3 comments

Comments

@barcelosleo
Copy link

barcelosleo commented Jun 4, 2024

It would be great if we had the possibility to show a ruler around the map. This ruler should change as the projection change as well, and the frequency of the ticks should be configurable as well (eg. show the latitude every 10km and longitude every 5km if we are dealing with an UTM projection or latitude every 2º and longitude every 3º if we are dealing with geographic projection). It should be something like that:
image

Another example:
image

We already have a scale bar, which is great, but it would be very good to be able to see the ruler around the map.

@hansthen
Copy link
Collaborator

hansthen commented Jun 4, 2024

Do you mean something like this? https://github.com/dtutic/Leaflet.EdgeScaleBar

@barcelosleo
Copy link
Author

@hansthen yes, but instead of scale I would like to plot the coordinates. The second print I posted translates very well what I need, where the UTM coordinates are shown.

@Conengmo
Copy link
Member

You could see if Leaflet has a plugin that supports this. If not, maybe some custom Javascript has to be written to make this, perhaps based off of https://github.com/dtutic/Leaflet.EdgeScaleBar.

In any case, we'll have to see if it's something we incorporate in Folium. We try to not take on too much additional maintenance. I can see it as something you may host yourself, and we link to it in our docs. Alternatively, take a look at out plugin acceptance criteria.

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