-
Notifications
You must be signed in to change notification settings - Fork 3
/
maps_with_no_labels.pjs
39 lines (34 loc) · 1.63 KB
/
maps_with_no_labels.pjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// {"author":"jvde-github","version": 3, "description":"use maps without labels"}
removeTileLayerAll();
removeOverlayLayerAll();
// Voyager Layer
var voyagerLayer = new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://{a-c}.basemaps.cartocdn.com/rastertiles/voyager_nolabels/{z}/{x}/{y}{r}.png',
attributions: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>',
maxZoom: 20,
})
});
// Satellite Layer
var satelliteLayer = new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',
attributions: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community',
})
});
// Positron Layer
var positronLayer = new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://{a-c}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{r}.png',
attributions: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>',
maxZoom: 20,
})
});
// Dark Matter Layer
var darkMatterLayer = new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://{a-c}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}{r}.png',
attributions: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>',
maxZoom: 20,
})
});