-
Notifications
You must be signed in to change notification settings - Fork 118
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
Adding tmap
layers to Leaflet Proxy map
#865
Comments
I still have to migrate the Your input is welcome, so thanks for that. However, I don't understand exactly what you mean yet. Are you looking for something like Could you perhaps share a minimal use case / example, of something you want to achieve? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was working on integrating
tmap
andleaflet
this week in a package so that I can usetmap
to create a static map then convert toleaflet
when necessary & add any extra interactive elements on top. This is achievable withtmap_leaflet
(although there were some annoyances such as the default converted Leaflet always showing 3 basemaps and then having to define the 1 basemap I want separately withtmap_options(basemaps)
.I thought it would be great to define any layers that could be static in
tmap
and then convert toleaflet
when I need to. This would reduce duplication of effort acrosstmap
andleaflet
.However, one problem I came across is that I want to be able to use the layers I defined in leaflet with a proxy map. If I convert with
tmap_leaflet
I get a full leaflet map, not layers I can then add to a proxy map.Is there any way to convert individual layers from
tmap
toleaflet
format? Or extract layers from the output oftmap_leaflet
and add them to anotherleaflet
map.I'm guessing this is not possible to do with the current version of
tmap
but maybe such an ability could be added in future?Ultimately, I'd like to be able to define a
tm_lines
then convert to leaflet and attach it so that the lines and legend appear correctly on the leaflet map.The text was updated successfully, but these errors were encountered: