Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add wrld3d Maps to R Leaflet Package

Tags:

r

leaflet

Is there a way to add our own third-party tiles to the R leaflet package? I’ve been drooling over wrld3d maps since I discovered them a couple months ago. Thanks!

like image 956
Paul Govan Avatar asked Mar 06 '18 13:03

Paul Govan


1 Answers

You can use addTiles to import additional titles. This example lets you import from Google Earth for instance.

leaflet() %>% addTiles(urlTemplate = "https://mts1.google.com/vt/lyrs=s&hl=en&src=app&x={x}&y={y}&z={z}&s=G", attribution = 'Google')

Solution provided sourced from this question

like image 155
Ryan Marinelli Avatar answered Oct 24 '22 19:10

Ryan Marinelli