Skip to content

Commit 4e594c6

Browse files
authored
Merge pull request #7092 from birkskyum/fix-arcgis-sat-layers
fix satellite layers for map- traces
2 parents 34568d5 + 64ba426 commit 4e594c6

File tree

6 files changed

+2115
-98
lines changed

6 files changed

+2115
-98
lines changed

Diff for: draftlogs/7060_add.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
- Add new traces: scattermap, choroplethmap and densitymap and map subplots which use maplibre to render maps [[#7015](https://github.com/plotly/plotly.js/pull/7015), [#7060](https://github.com/plotly/plotly.js/pull/7060), [#7085](https://github.com/plotly/plotly.js/pull/7085), [#7088](https://github.com/plotly/plotly.js/pull/7088)]
1+
- Add new traces: scattermap, choroplethmap and densitymap and map subplots which use maplibre to render maps [[#7015](https://github.com/plotly/plotly.js/pull/7015), [#7060](https://github.com/plotly/plotly.js/pull/7060), [#7085](https://github.com/plotly/plotly.js/pull/7085), [#7088](https://github.com/plotly/plotly.js/pull/7088), [#7092](https://github.com/plotly/plotly.js/pull/7092)]

Diff for: src/plots/map/constants.js

+3-95
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
'use strict';
22

33
var sortObjectKeys = require('../../lib/sort_object_keys');
4+
var arcgisSatHybrid = require('./styles/arcgis-sat-hybrid.json'); // https://raw.githubusercontent.com/go2garret/maps/v1.0.0/LICENSE
5+
var arcgisSat = require('./styles/arcgis-sat.json');
6+
47

58
var OSM = '© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors';
69

@@ -10,102 +13,7 @@ var cartoVoyager = 'https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json
1013
var cartoPositronNoLabels = 'https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json';
1114
var cartoDarkmatterNoLabels = 'https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json';
1215
var cartoVoyagerNoLabels = 'https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json';
13-
var arcgisSatHybrid = 'https://raw.githubusercontent.com/go2garret/maps/v1.0.0/src/assets/json/arcgis_hybrid.json';
14-
var arcgisSat = {
15-
version: 8,
16-
name: 'orto',
17-
metadata: {},
18-
center: [
19-
1.537786,
20-
41.837539
21-
],
22-
zoom: 12,
23-
bearing: 0,
24-
pitch: 0,
25-
light: {
26-
anchor: 'viewport',
27-
color: 'white',
28-
intensity: 0.4,
29-
position: [
30-
1.15,
31-
45,
32-
30
33-
]
34-
},
35-
sources: {
36-
ortoEsri: {
37-
type: 'raster',
38-
tiles: [
39-
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}'
40-
],
41-
tileSize: 256,
42-
maxzoom: 18,
43-
attribution: 'ESRI &copy; <a href=\'http://www.esri.com\'>ESRI</a>'
44-
},
45-
ortoInstaMaps: {
46-
type: 'raster',
47-
tiles: [
48-
'https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png'
49-
],
50-
tileSize: 256,
51-
maxzoom: 13
52-
},
53-
ortoICGC: {
54-
type: 'raster',
55-
tiles: [
56-
'https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg'
57-
],
58-
tileSize: 256,
59-
minzoom: 13.1,
60-
maxzoom: 20
61-
},
62-
openmaptiles: {
63-
type: 'vector',
64-
url: 'https://geoserveis.icgc.cat/contextmaps/basemap.json'
65-
}
66-
},
6716

68-
sprite: 'https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1',
69-
glyphs: 'https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf',
70-
layers: [
71-
{
72-
id: 'background',
73-
type: 'background',
74-
paint: {
75-
'background-color': '#F4F9F4'
76-
}
77-
},
78-
{
79-
id: 'ortoEsri',
80-
type: 'raster',
81-
source: 'ortoEsri',
82-
maxzoom: 16,
83-
layout: {
84-
visibility: 'visible'
85-
}
86-
},
87-
{
88-
id: 'ortoICGC',
89-
type: 'raster',
90-
source: 'ortoICGC',
91-
minzoom: 13.1,
92-
maxzoom: 19,
93-
layout: {
94-
visibility: 'visible'
95-
}
96-
},
97-
{
98-
id: 'ortoInstaMaps',
99-
type: 'raster',
100-
source: 'ortoInstaMaps',
101-
maxzoom: 13,
102-
layout: {
103-
visibility: 'visible'
104-
}
105-
},
106-
],
107-
108-
};
10917

11018
var stylesMap = {
11119
basic: cartoVoyager,

0 commit comments

Comments
 (0)