// LLamada a la colección Sentinel y filtro de fechas y nubes var Sentinel = ee.ImageCollection('COPERNICUS/S2') .filterDate('2018-10-01', '2018-12-30') .filterMetadata ('CLOUDY_PIXEL_PERCENTAGE', 'Less_Than', 10); // Realizamos la composición RGB del mapa inicial Map.addLayer(Sentinel, {bands: ['B11', 'B8', 'B2'], gamma: 1, min: 0, max: 5000,}, 'Agricultura'); // Realizamos la composición RGB del segundo mapa var MapasVinculados = ui.Map(); MapasVinculados.addLayer(Sentinel, {bands: ['B8', 'B4', 'B3'], gamma: 1, min: 0, max: 5000}, 'Falso color'); // Vinculamos los mapas var SWIPE = ui.Map.Linker([ui.root.widgets().get(0), MapasVinculados]); // Integramos el efecto swipe creando una cortinilla horizontal o vertical var SWIPE2 = ui.SplitPanel({ firstPanel: SWIPE.get(0), secondPanel: SWIPE.get(1), orientation: 'horizontal', //'horizontal' o 'vertical' wipe: true, style: {stretch: 'both'}}); // Mostramos los mapas vinculados con efecto swipe, centramos en coordenada y asignamos zoom ui.root.widgets().reset([SWIPE2]); MapasVinculados.setCenter(-24.366,14.945, 13);