How to add XYZ and WMS link to leaflet map

Hi all,

I am using EllipsisDrive ( to test it as repository for some R projects (Shiny & R markdown) without worrying for generating WMS my self or CORS configuration when hosting my cloud optimized geotif repository (in google cloud or AWS storage for instance).

With EDrive I have:
-XYZ link:{z}/{x}/{y}?style=8b77dfaf-45e9-4e95-9d17-fa480901be39&token=epat_3Nk1WOphGqRXHZitewDt1RGD0JG6SLEz1tCIWASkuPxItBU2wRHWSaqrAKg7AmZg

-WMS link: Ellipsis Drive WMS

I tested these links with QGIS by adding WMS and XYZ layers and they work fine there. Then I tried in R:


 leaflet()  %>% setView(lng = -2.683 , lat =43.31 , zoom = 10) %>% addTiles() %>%
     layers = "0",
     options = WMSTileOptions(format = "image/png", transparent = F)

But I don´t get the layer, just the base OSM layer. I check the XML file and found:

<Layer queryable="0">

so I changed the layers to layers = "modis_ndvi_cog" but got the same result. So, what is wrong with my code? In addition, is it possible to add an XYZ link to leaflet map? if so, how can be done? The links are open so anyone can check on them.

Thank you,


addTiles(templateUrl= 'the xyz url')
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.