-
Notifications
You must be signed in to change notification settings - Fork 3
/
moremaps.pjs
135 lines (118 loc) · 5.09 KB
/
moremaps.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// {"author":"GosportXplorer","version": 3, "description":"more maps"}
// Reworked by dziban303
removeTileLayerAll();
removeOverlayLayerAll();
addTileLayer("OpenStreetMap", new ol.layer.Tile({
source: new ol.source.OSM(),
maxZoom: 19
}));
addTileLayer("Voyager",new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://{a-c}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png',
attributions: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>',
maxZoom: 20
})
}));
addTileLayer("StamenWatercolour", new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://stamen-tiles-{a-d}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg',
attributions: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://stamen.com">Stamen Design</a>',
maxZoom: 16
})
}));
addTileLayer("StamenTonerLite", new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://stamen-tiles-{a-d}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png',
attributions: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://stamen.com">Stamen Design</a>',
maxZoom: 20
})
}));
addTileLayer("DarkMatter", new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',
attributions: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>',
maxZoom: 20
})
}));
// OpenTopoMap
addTileLayer("OpenTopoMap", new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://{a-c}.tile.opentopomap.org/{z}/{x}/{y}.png',
attributions: 'Map data © OpenStreetMap contributors, SRTM | Map style © OpenTopoMap (CC-BY-SA)'
})
}));
// CartoDB (Voyager No Labels Under)
addTileLayer("CartoDB", new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://{s}.basemaps.cartocdn.com/rastertiles/voyager_nolabels_under/{z}/{x}/{y}.png',
attributions: '© <a href="https://carto.com/">CARTO</a>',
maxZoom: 18
})
}));
// World Street Map (Esri)
addTileLayer("World_Street_Map", new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}',
attributions: 'Tiles © Esri'
})
}));
// World Imagery (Esri)
addTileLayer("World_Imagery", 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'
})
}));
// World Terrain Base (Esri)
addTileLayer("World_Terrain_Base", new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer/tile/{z}/{y}/{x}',
attributions: 'Tiles © Esri | Source: USGS, Esri, TANA, DeLorme, and NPS'
})
}));
// World Topo Map (Esri)
addTileLayer("World_Topo_Map", new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}',
attributions: 'Tiles © Esri'
})
}));
// World Shaded Relief (Esri)
addTileLayer("World_Shaded_Relief", new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}',
attributions: 'Tiles © Esri | Sources: USGS, Esri'
})
}));
// World Hillshade (Esri)
addTileLayer("World_Hillshade", new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Hillshade/MapServer/tile/{z}/{y}/{x}',
attributions: 'Tiles © Esri | Sources: USGS, Esri'
})
}));
// World Physical Map (Esri)
addTileLayer("World_Physical_Map", new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer/tile/{z}/{y}/{x}',
attributions: 'Tiles © Esri | Sources: US National Park Service, Esri, HERE, Garmin, INCREMENT P, METI/NASA Japan, EPA, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
})
}));
addOverlayLayer("OpenSeaMap", new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png',
attributions: 'Map data: © <a href="http://www.openseamap.org">OpenSeaMap</a>'
})
}));
addOverlayLayer("NOAA", new ol.layer.Tile({
source: new ol.source.TileWMS({
url: 'https://gis.charttools.noaa.gov/arcgis/rest/services/MCS/ENCOnline/MapServer/exts/MaritimeChartService/WMSServer?',
params: {
'LAYERS': '1,2,3,4,5,6,7',
'FORMAT': 'image/png',
'TRANSPARENT': 'true',
'VERSION': '1.3.0'
},
serverType: 'geoserver'
})
}));