Skip to content

Commit

Permalink
fix(baseLayers): remove duplicate osm layer
Browse files Browse the repository at this point in the history
  • Loading branch information
NSUWAL123 committed Nov 18, 2024
1 parent 9d5ebb6 commit e091db6
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions src/mapper/src/constants/baseLayers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a target="_top" rel="noopener" href="https://tile.openstreetmap.org/">OpenStreetMap tile servers</a>, under the <a target="_top" rel="noopener" href="https://operations.osmfoundation.org/policies/tiles/">tile usage policy</a>. Data by <a target="_top" rel="noopener" href="http://openstreetmap.org">OpenStreetMap</a>',
},
},
layers: [
{
id: 'osm',
type: 'raster',
source: 'osm',
layout: {
visibility: 'visible',
},
},
],
};

let satellite = {
id: 'Satellite',
version: 8,
Expand All @@ -102,4 +75,4 @@ let satellite = {
],
};

export const baseLayers = [stamenStyle, esriStyle, osm, satellite];
export const baseLayers = [stamenStyle, esriStyle, satellite];

0 comments on commit e091db6

Please sign in to comment.