leaflet.esri
leaflet.esri copied to clipboard
addEsriImageMapLayer not working for some image services
I am trying to add Sentinel-2 image layer to my leaflet map and nothing renders. I do the same thing as the Landsat example (which works for me), but just change the URL and the rendering rule to one that is written on the service. Is there a bug or am I doing something wrong?
leaflet() %>%
leaflet.esri::addEsriImageMapLayer( "https://sentinel.arcgis.com/arcgis/rest/services/Sentinel2/ImageServer", imageMapLayerOptions( renderingRule = "Natural Color with DRA" ), group = "test", layerId = "test")