Fixed Mapbox support

This commit is contained in:
Maria Merkel
2025-08-31 10:30:36 +02:00
committed by wiedehopf
parent 6f5f2fec78
commit f527a8283b

View File

@@ -304,7 +304,7 @@ function createBaseLayers() {
MapboxAPIKey = loStore['mapboxKey'];
if (MapboxAPIKey) {
world.push(new ol.MapboxVectorLayer({
world.push(new ol.mapboxStyle.MapboxVectorLayer({
styleUrl: 'mapbox://styles/mapbox/streets-v10',
accessToken: MapboxAPIKey,
properties: {
@@ -313,7 +313,7 @@ function createBaseLayers() {
type: 'base',
},
}));
world.push(new ol.MapboxVectorLayer({
world.push(new ol.mapboxStyle.MapboxVectorLayer({
styleUrl: 'mapbox://styles/mapbox/light-v11',
accessToken: MapboxAPIKey,
properties: {
@@ -322,7 +322,7 @@ function createBaseLayers() {
type: 'base',
},
}));
world.push(new ol.MapboxVectorLayer({
world.push(new ol.mapboxStyle.MapboxVectorLayer({
styleUrl: 'mapbox://styles/mapbox/dark-v11',
accessToken: MapboxAPIKey,
properties: {
@@ -331,7 +331,7 @@ function createBaseLayers() {
type: 'base',
},
}));
world.push(new ol.MapboxVectorLayer({
world.push(new ol.mapboxStyle.MapboxVectorLayer({
styleUrl: 'mapbox://styles/mapbox/outdoors-v10',
accessToken: MapboxAPIKey,
properties: {