mapview icon indicating copy to clipboard operation
mapview copied to clipboard

[feature request] Add option to plot axis of the coordinates on the side of the map in mapshot

Open beausoleilmo opened this issue 4 years ago • 7 comments

It would be amazing to have an option to show the longitude latitude axis with tick markings as coordinates.

beausoleilmo avatar Mar 08 '21 23:03 beausoleilmo

I am assuming you are referring to the static mode?

tim-salabim avatar Apr 03 '21 08:04 tim-salabim

I'm not sure what is static mode, but I guess it's to get a map design? I don't see it in the package

beausoleilmo avatar Apr 03 '21 13:04 beausoleilmo

I mean you want save the map as png (not html) right? In any case, this is not possible, unless you add some graticule plugin to your map. mapview does not have this option, but I think there are some ways to do this (maybe leaflet has that option). The reason is that in mapshot we simply take a screenshot of the html.

tim-salabim avatar Apr 03 '21 13:04 tim-salabim

One thing I am contemplating for the future is a ggmapview function to turn a ggplot into a interactive map. We could then also think about doing the reverse, i.e. turn a leaflet map into a ggplot...

tim-salabim avatar Apr 03 '21 13:04 tim-salabim

Ah! OK good to know. That'd be amazing. I understand that this is in development and I'm looking forward to seeing how this will be implemented!

beausoleilmo avatar Apr 03 '21 14:04 beausoleilmo

And things like a North arrow! https://stackoverflow.com/questions/22325460/how-can-i-add-a-north-arrow-to-a-leaflet-js-map

beausoleilmo avatar Apr 03 '21 14:04 beausoleilmo

For standard leaflet you won't need a north arrow as north is always up

tim-salabim avatar Apr 03 '21 14:04 tim-salabim