You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a just a suggestion, but I think it would make mapview more intuitive.
removeMapJunk() is a function that allows the removal of elements such as the zoomControl and the homebutton, however it took me a long time to find it as it doesn't appear in any articles or vignettes.
In addition, the mapview() function itself does contain an argument homebutton = FALSE to remove the homebutton. This gives the impression that the other elements cannot be removed. Being able to remove the homebutton in both removeMapJunk() and mapview(), but not being able to do the same with zoomControl seems inconsistent.
My suggestion is to add all removeMapJunk() functionality as arguments to mapview(). I'd be happy to do a PR at some point, but would like to get your thoughts first, as there may be something I have missed!
The text was updated successfully, but these errors were encountered:
Hi @thomaszwagerman thanks for bringing this up. I agree that having homebutton as an argument to mapview() but not the others is inconsistent. However, don't you think having removeMapJunk() is enough? I'm hesitant to add more arguments to mapview() (it has too many as it is)...
Hi @tim-salabim, thank you for your response (and apologies for the delay in mine, I've been away).
That makes sense - I agree having just removeMapJunk() is enough, especially if the goal is to reduce the number of arguments in mapview(), rather than adding more!
In that case for a PR, how about removing the homebutton argument in mapview(), and adding a brief section in the 5. extra functionality vignette on removing map junk?
Hi there,
Thank you for this package!
This is a just a suggestion, but I think it would make mapview more intuitive.
removeMapJunk()
is a function that allows the removal of elements such as thezoomControl
and thehomebutton
, however it took me a long time to find it as it doesn't appear in any articles or vignettes.In addition, the
mapview()
function itself does contain an argumenthomebutton = FALSE
to remove thehomebutton
. This gives the impression that the other elements cannot be removed. Being able to remove thehomebutton
in bothremoveMapJunk()
andmapview()
, but not being able to do the same withzoomControl
seems inconsistent.My suggestion is to add all
removeMapJunk()
functionality as arguments tomapview()
. I'd be happy to do a PR at some point, but would like to get your thoughts first, as there may be something I have missed!The text was updated successfully, but these errors were encountered: