From 406251dcb9d515c9348fcc6bd23b653d01af1a9c Mon Sep 17 00:00:00 2001 From: Dennis Smith Date: Wed, 7 Feb 2024 10:06:34 -0500 Subject: [PATCH] use OSM map layer for default (#211) --- src/ol-controls/basemap-picker.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/ol-controls/basemap-picker.js b/src/ol-controls/basemap-picker.js index 456f7688..87d297ce 100644 --- a/src/ol-controls/basemap-picker.js +++ b/src/ol-controls/basemap-picker.js @@ -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: + '© OpenStreetMap', + }, { id: 'CartoDBPositron', name: 'CartoDB Positron', @@ -23,14 +31,6 @@ const basemaps = [ '© OpenStreetMap © CartoDB', maxZoom: 19, }, - { - id: 'OpenStreetMap', - name: 'OpenStreetMap', - url: 'https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png', - maxZoom: 19, - attributions: - '© OpenStreetMap', - }, { id: 'MapBoxStreets', name: 'MapBox Streets', @@ -121,7 +121,6 @@ class BasemapControl extends Control { (b) => new XYZ({ url: b.url, - crossOrigin: true, attributions: b.attributions, maxZoom: b.maxZoom, })