const map_settings = {"latitude":"-1.6436038780135667","longitude":"103.4265764728408","zoom":"9"};const osm = L.tileLayer('//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {id: 'osm', constrainResolution: true, retina: '@2x', detectRetina: true, attribution: '© OpenStreetMap contributors. Website and API terms', tileSize: 512, zoomOffset: -1, });const light = L.tileLayer('//{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', {id: 'light', constrainResolution: true, retina: '@2x', detectRetina: true, attribution: '© OpenStreetMap contributors. © rastertiles/voyager', tileSize: 512, zoomOffset: -1, });const dark = L.tileLayer('//{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', {id: 'dark', constrainResolution: true, retina: '@2x', detectRetina: true, attribution: '© OpenStreetMap contributors. © rastertiles/voyager', tileSize: 512, zoomOffset: -1, });const opentopomap = L.tileLayer('//{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {id: 'opentopomap', constrainResolution: true, retina: '@2x', detectRetina: true, attribution: 'Map data: © OpenStreetMap contributors, SRTM | Map style: © OpenTopoMap (CC-BY-SA)', tileSize: 512, zoomOffset: -1, });const cyclosm = L.tileLayer('//{s}.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png', {id: 'cyclosm', constrainResolution: true, retina: '@2x', detectRetina: true, attribution: 'CyclOSM | Map data: © OpenStreetMap contributors', tileSize: 512, zoomOffset: -1, });const esriworldimagery = L.tileLayer('//server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {id: 'esriworldimagery', constrainResolution: true, retina: '@2x', detectRetina: true, attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community', tileSize: 512, zoomOffset: -1, });const esrinatgeoworldmap = L.tileLayer('//server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{z}/{y}/{x}', {id: 'esrinatgeoworldmap', constrainResolution: true, retina: '@2x', detectRetina: true, attribution: 'Tiles © Esri — National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC', tileSize: 512, zoomOffset: -1, });const baseLayers = {'OSM':osm,'Light':light,'Dark':dark,'OpenTopoMap':opentopomap,'CyclOSM':cyclosm,'EsriWorldImagery':esriworldimagery,'EsriNatGeoWorldMap':esrinatgeoworldmap,}; const baseLayerThree = [{ label: ' OSM', layer: osm },{ label: ' Light', layer: light },{ label: ' Dark', layer: dark },{ label: ' OpenTopoMap', layer: opentopomap },{ label: ' CyclOSM', layer: cyclosm },{ label: ' EsriWorldImagery', layer: esriworldimagery },{ label: ' EsriNatGeoWorldMap', layer: esrinatgeoworldmap },]; const defaultLayer = osm; const layer_show_first = "6";const layer_show_first_other = ["11","12","13","14","15"];const layers_selected = ["3","4","5","6","7","8"];