Skip to content

Commit

Permalink
use OSM map layer for default (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisgsmith authored Feb 7, 2024
1 parent 6360cee commit 406251d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/ol-controls/basemap-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ import { Tile } from 'ol/layer';
import './basemap-picker.css';

const basemaps = [
{
id: 'OpenStreetMap',
name: 'OpenStreetMap',
url: 'https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png',
maxZoom: 19,
attributions:
'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
},
{
id: 'CartoDBPositron',
name: 'CartoDB Positron',
Expand All @@ -23,14 +31,6 @@ const basemaps = [
'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> &copy; <a href="https://cartodb.com/attributionss">CartoDB</a>',
maxZoom: 19,
},
{
id: 'OpenStreetMap',
name: 'OpenStreetMap',
url: 'https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png',
maxZoom: 19,
attributions:
'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
},
{
id: 'MapBoxStreets',
name: 'MapBox Streets',
Expand Down Expand Up @@ -121,7 +121,6 @@ class BasemapControl extends Control {
(b) =>
new XYZ({
url: b.url,
crossOrigin: true,
attributions: b.attributions,
maxZoom: b.maxZoom,
})
Expand Down

0 comments on commit 406251d

Please sign in to comment.