Skip to main content

Hello today I have a website that uses the following function:

function satelitegoogle(){


			mapa.remove()


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

});
mapa = sateliteGoogle.addTo(mapabase);

contornoMinas();


}

function sateliteesri(){

mapa.remove();

sateliteEsri = L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {
attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
});

mapa = sateliteEsri.addTo(mapabase);


return contornoMinas();



}

Now I wanted to add the image of the sentinel satelite, but I’m not able to do that, can anyone help me?

I am guessing you are using Leaflet?


If so, I suggest you check this FAQ entry.


thanks, It worked perfectly,


Reply