Replies: 2 comments 1 reply
-
|
I've never gotten mapgl to work in webr myself. I'll take a look! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Looking through this: https://docs.r-wasm.org/webr/latest/networking.html I'm not sure webr is set up for packages like mapgl that need to make external requests (e.g. to a map tile server). I notice that leaflet() |> addTiles() doesn't work either, and I can't download data with tigris in webr. so it might just not be the right tool for the job (though happy to be corrected) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Kyle, I am trying to test out if I can make {mapgl} package work to create a serverless shiny app using
webrandshinylive. However, I noted that the base map style does not render, i.e. the globe renders as blank canvas. Alternatively I triedstyle = "https://tiles.openfreemap.org/styles/liberty", the base map works at a higher zoom level, but the same thing happens in the lower zoom level.I couldn't figure out the root of the problem or a solution so I am posting here in a hope that you can lead me to the correct direction.
Here is the link to the webr app: https://webr.sh/#code=eJyNjzFOw0AQRUXrU4w2jS0FO0RCSJaCRAEVFYiGxtqsJ7HJeseanTgKouME3CEdN0C03IuNgRClQFQ7%2B%2F%2Bb%2FzUvzxunG3y9c1KLxfIkvdm0Wqq3rKIGsxVOi6VHzvb9Uov%2BOHoPHud57bxoa2PV6HZu1RAYW%2FITE6tKpPV5lq20XSAvMOXjpas7ZI9piV0W2B2zXQr%2BSvsmJZ5nKkmiARw0%2BPEu%2Fo9FGEBJ6J1ApTsE7daAsxkagdqBVAjITBwdZBsqUYis%2F09FFPXH5nl4bD1ljCMAL2uLMIFvy2gWKnoxVh2t9RxZJcMAGnSCHEgTj4Yw6rVHoiYo4%2FTsdPv1hsna%2By%2Fx6uL69jJK4On8p9ajFC3TQziqJhf%2FjoFWc0tTVPu4LsuiVwtDTkJynHwCz2ir4g%3D%3D
alternatively, you can visit webr.sh and insert the following code:
Note
I installed {mapgl} from r-universe because the {mapgl} package in
r-wasmrepo hasnt been updated to the latest {mapgl} version and doesn't support functions such asadd_globe_control().Beta Was this translation helpful? Give feedback.
All reactions