From e091db6c8219a501a446c7d1c5af4df3666b86ff Mon Sep 17 00:00:00 2001 From: NSUWAL123 Date: Mon, 18 Nov 2024 13:22:56 +0545 Subject: [PATCH] fix(baseLayers): remove duplicate osm layer --- src/mapper/src/constants/baseLayers.ts | 29 +------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/src/mapper/src/constants/baseLayers.ts b/src/mapper/src/constants/baseLayers.ts index 8eeeba46d7..d1a77e4f58 100644 --- a/src/mapper/src/constants/baseLayers.ts +++ b/src/mapper/src/constants/baseLayers.ts @@ -51,33 +51,6 @@ let esriStyle = { ], }; -let osm = { - id: 'OSM', - version: 8, - name: 'OSM', - sources: { - osm: { - type: 'raster', - tiles: ['https://tile.openstreetmap.org/{z}/{x}/{y}.png'], - // minzoom: 0, - // maxzoom: 19, - tileSize: 256, - attribution: - 'Map tiles by OpenStreetMap tile servers, under the tile usage policy. Data by OpenStreetMap', - }, - }, - layers: [ - { - id: 'osm', - type: 'raster', - source: 'osm', - layout: { - visibility: 'visible', - }, - }, - ], -}; - let satellite = { id: 'Satellite', version: 8, @@ -102,4 +75,4 @@ let satellite = { ], }; -export const baseLayers = [stamenStyle, esriStyle, osm, satellite]; +export const baseLayers = [stamenStyle, esriStyle, satellite];