Add custom layer to leaflet maps

I'm trying to add a third party google map tile layer to leaflet map in R. For now, I'm using the addProviderTiles("Esri.WorldImagery") to add a satellite view.
The tile layer I want to use has following JavaScript code:

googleHybrid = L.tileLayer('http://{s}.google.com/vt?lyrs=s,h&x={x}&y={y}&z={z}',{
    maxZoom: 20,
    subdomains:['mt0','mt1','mt2','mt3']
});

Is there a way to do so?

This topic was automatically closed 21 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.