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
Each layer has two arguments group and group.control.
I found out that leaflet maps can also handle visibility per zoom level via leaflet::groupOptions(). So instead of added yet another argument to each layer function (group.zoom_levels), I made a separate function tm_group for all the group handling (also group.control). This is also more elegant because there can be multiple layers per group.
If you agree, I'll remove group.control from the layer functions. Still, I need to set the default group.control inside the layer function (under the hood): e.g. basemap -> radio, vector layer -> checkbox, aux layer -> none.
@mtennekes -- I checked the first two examples -- they are great. One question, have you considered using the functions in order (thus removing the need to repeating the group name):
Each layer has two arguments
group
andgroup.control
.I found out that leaflet maps can also handle visibility per zoom level via
leaflet::groupOptions()
. So instead of added yet another argument to each layer function (group.zoom_levels), I made a separate functiontm_group
for all the group handling (alsogroup.control
). This is also more elegant because there can be multiple layers per group.If you agree, I'll remove
group.control
from the layer functions. Still, I need to set the default group.control inside the layer function (under the hood): e.g. basemap -> radio, vector layer -> checkbox, aux layer -> none.Use case 1: different scaling
Use case 2: different zonings
Please review @Nowosad @Robinlovelace @olivroy
I'll update the
NLD_prov
andNLD_muni
datasets, and probably will addNLD_dist
#967 . Then I'm able to add some examples to the documentation.The text was updated successfully, but these errors were encountered: