Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 014e063

Browse filesBrowse files
committed
sat
1 parent 2f5aa98 commit 014e063
Copy full SHA for 014e063

File tree

Expand file treeCollapse file tree

1 file changed

+100
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+100
-5
lines changed

‎src/plots/mapbox/constants.js

Copy file name to clipboardExpand all lines: src/plots/mapbox/constants.js
+100-5Lines changed: 100 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,111 @@ var cartoVoyager = 'https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json
3434
var cartoPositronNoLabels = 'https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json';
3535
var cartoDarkmatterNoLabels = 'https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json';
3636
var cartoVoyagerNoLabels = 'https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json';
37-
var arcgisSat = 'https://raw.githubusercontent.com/go2garret/maps/main/src/assets/json/arcgis_hybrid.json';
37+
var arcgisSatHybrid = 'https://raw.githubusercontent.com/go2garret/maps/main/src/assets/json/arcgis_hybrid.json';
38+
var arcgisSat = {
39+
"version": 8,
40+
"name": "orto",
41+
"metadata": {},
42+
"center": [
43+
1.537786,
44+
41.837539
45+
],
46+
"zoom": 12,
47+
"bearing": 0,
48+
"pitch": 0,
49+
"light": {
50+
"anchor": "viewport",
51+
"color": "white",
52+
"intensity": 0.4,
53+
"position": [
54+
1.15,
55+
45,
56+
30
57+
]
58+
},
59+
"sources": {
60+
"ortoEsri": {
61+
"type": "raster",
62+
"tiles": [
63+
"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"
64+
],
65+
"tileSize": 256,
66+
"maxzoom": 18,
67+
"attribution": "ESRI &copy; <a href='http://www.esri.com'>ESRI</a>"
68+
},
69+
"ortoInstaMaps": {
70+
"type": "raster",
71+
"tiles": [
72+
"https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"
73+
],
74+
"tileSize": 256,
75+
"maxzoom": 13
76+
},
77+
"ortoICGC": {
78+
"type": "raster",
79+
"tiles": [
80+
"https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"
81+
],
82+
"tileSize": 256,
83+
"minzoom": 13.1,
84+
"maxzoom": 20
85+
},
86+
"openmaptiles": {
87+
"type": "vector",
88+
"url": "https://geoserveis.icgc.cat/contextmaps/basemap.json"
89+
}
90+
},
91+
92+
"sprite": "https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",
93+
"glyphs": "https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",
94+
"layers": [
95+
{
96+
"id": "background",
97+
"type": "background",
98+
"paint": {
99+
"background-color": "#F4F9F4"
100+
}
101+
},
102+
{
103+
"id": "ortoEsri",
104+
"type": "raster",
105+
"source": "ortoEsri",
106+
"maxzoom": 16,
107+
"layout": {
108+
"visibility": "visible"
109+
}
110+
},
111+
{
112+
"id": "ortoICGC",
113+
"type": "raster",
114+
"source": "ortoICGC",
115+
"minzoom": 13.1,
116+
"maxzoom": 19,
117+
"layout": {
118+
"visibility": "visible"
119+
}
120+
},
121+
{
122+
"id": "ortoInstaMaps",
123+
"type": "raster",
124+
"source": "ortoInstaMaps",
125+
"maxzoom": 13,
126+
"layout": {
127+
"visibility": "visible"
128+
}
129+
},
130+
],
131+
132+
};
38133

39134
var stylesMapbox = {
40135
'basic': cartoVoyager,
41136
'streets': cartoPositron,
42-
'outdoors': cartoVoyager,
43-
'light': cartoPositron,
44-
'dark': cartoDarkmatter,
137+
'outdoors': cartoVoyagerNoLabels,
138+
'light': cartoPositronNoLabels,
139+
'dark': cartoDarkmatterNoLabels,
45140
'satellite': arcgisSat,
46-
'satellite-streets': arcgisSat,
141+
'satellite-streets': arcgisSatHybrid,
47142
'open-street-map': {
48143
id: 'osm',
49144
version: 8,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.