-
Notifications
You must be signed in to change notification settings - Fork 508
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
local downloaded tiles #194
Comments
Are you creating a Shiny app? Or a stand-alone HTML file? |
I tried with both of them, with no succes
|
I successfully use local tiles (they are not download but created by me, the structure is something like: "map/tiles/{z}/{x}/{y}.png" ) inside a Shiny app. and the directory map/ is inside www/ |
Please could you explain me step by step how to set up my shiny app?
|
I wrote a simple app to show it The map is a bit distorted because the method I use to produce the map directory is supposed to work with square images, so it fit the initial image to a square. Example on shinyapps: https://gherardo.shinyapps.io/exampleLocalTiles |
thank you very much. |
Has someone an idea why it's not working outside a shiny app? |
the problem I think is that, if you are not in a shiny app there is no server able to answer the request of map's tiles. I succeed using local tiles in this way:
obviously the In the terminal you can actually see the server answering the tiles requests. |
@gherardovarando Thanks for the example app, it was exactly what I wanted to do [edit] Nevermind, it works perfectly. I just forget to set the "tms" option to TRUE within the addTiles: |
Hi,
I'm trying to develop a R app that use the leaflet package but with local downloaded tiles.
Using this code:
tilesDir <- 'file:///c:/MapQuest/{z}/{x}/{y}.png'
leaflet() %>% addTiles(urlTemplate =tilesDir)
But it not shows anything.
How Can I use local tiles?
Thank you
The text was updated successfully, but these errors were encountered: