@eeacms/volto-arcgis-block 0.1.203 → 0.1.204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [0.1.204](https://github.com/eea/volto-arcgis-block/compare/0.1.203...0.1.204) - 22 September 2023
|
|
8
|
+
|
|
7
9
|
### [0.1.203](https://github.com/eea/volto-arcgis-block/compare/0.1.202...0.1.203) - 21 September 2023
|
|
8
10
|
|
|
9
11
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -26,6 +26,7 @@ class BasemapWidget extends React.Component {
|
|
|
26
26
|
this.menuClass =
|
|
27
27
|
'esri-icon-basemap esri-widget--button esri-widget esri-interactive';
|
|
28
28
|
this.loadFirst = true;
|
|
29
|
+
this.urls = this.props.urls;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
loader() {
|
|
@@ -171,7 +172,7 @@ class BasemapWidget extends React.Component {
|
|
|
171
172
|
baseLayers: [
|
|
172
173
|
new WebTileLayer({
|
|
173
174
|
urlTemplate: ${url}.replace('{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}', '/${proj}/{z}/{x}/{y}'),
|
|
174
|
-
copyright: '
|
|
175
|
+
copyright: '© OpenStreetMap (and) contributors, CC-BY-SA',
|
|
175
176
|
})
|
|
176
177
|
]
|
|
177
178
|
});
|
|
@@ -190,14 +191,11 @@ class BasemapWidget extends React.Component {
|
|
|
190
191
|
// Only 3 basemaps
|
|
191
192
|
this.positronCompositeBasemap = new Basemap({
|
|
192
193
|
title: 'Positron composite',
|
|
193
|
-
thumbnailUrl:
|
|
194
|
-
'https://gisco-services.ec.europa.eu/maps/wmts/OSMPositronComposite/EPSG3857/0/0/0.png',
|
|
194
|
+
thumbnailUrl: this.urls.positronCompositeThumbnail,
|
|
195
195
|
baseLayers: [
|
|
196
196
|
new WebTileLayer({
|
|
197
|
-
urlTemplate:
|
|
198
|
-
|
|
199
|
-
copyright:
|
|
200
|
-
'© <a href="https://www.openstreetmap.org/about" target="_blank">OpenStreetMap</a> (and) contributors, CC-BY-SA',
|
|
197
|
+
urlTemplate: this.urls.positronCompositeTemplate,
|
|
198
|
+
copyright: '© OpenStreetMap (and) contributors, CC-BY-SA',
|
|
201
199
|
}),
|
|
202
200
|
],
|
|
203
201
|
// referenceLayers: [
|
|
@@ -207,14 +205,11 @@ class BasemapWidget extends React.Component {
|
|
|
207
205
|
|
|
208
206
|
this.blossomCompositeBasemap = new Basemap({
|
|
209
207
|
title: 'Blossom composite',
|
|
210
|
-
thumbnailUrl:
|
|
211
|
-
'https://gisco-services.ec.europa.eu/maps/wmts/OSMBlossomComposite/EPSG3857/0/0/0.png',
|
|
208
|
+
thumbnailUrl: this.urls.blossomCompositeThumbnail,
|
|
212
209
|
baseLayers: [
|
|
213
210
|
new WebTileLayer({
|
|
214
|
-
urlTemplate:
|
|
215
|
-
|
|
216
|
-
copyright:
|
|
217
|
-
'© <a href="https://www.openstreetmap.org/about" target="_blank">OpenStreetMap</a> (and) contributors, CC-BY-SA',
|
|
211
|
+
urlTemplate: this.urls.blossomCompositeTemplate,
|
|
212
|
+
copyright: '© OpenStreetMap (and) contributors, CC-BY-SA',
|
|
218
213
|
}),
|
|
219
214
|
],
|
|
220
215
|
// referenceLayers: [
|
|
@@ -224,14 +219,11 @@ class BasemapWidget extends React.Component {
|
|
|
224
219
|
|
|
225
220
|
this.worldBoundariesBasemap = new Basemap({
|
|
226
221
|
title: 'World boundaries',
|
|
227
|
-
thumbnailUrl:
|
|
228
|
-
'https://gisco-services.ec.europa.eu/maps/wmts/CountriesWorld/EPSG3857/0/0/0.png',
|
|
222
|
+
thumbnailUrl: this.urls.countriesWorldThumbnail,
|
|
229
223
|
baseLayers: [
|
|
230
224
|
new WebTileLayer({
|
|
231
|
-
urlTemplate:
|
|
232
|
-
|
|
233
|
-
copyright:
|
|
234
|
-
'© <a href="https://www.openstreetmap.org/about" target="_blank">OpenStreetMap</a> (and) contributors, CC-BY-SA',
|
|
225
|
+
urlTemplate: this.urls.countriesWorldTemplate,
|
|
226
|
+
copyright: '© OpenStreetMap (and) contributors, CC-BY-SA',
|
|
235
227
|
}),
|
|
236
228
|
],
|
|
237
229
|
// referenceLayers: [
|
|
@@ -137,14 +137,11 @@ class MapViewer extends React.Component {
|
|
|
137
137
|
await this.waitForDataFill(this.compCfg);
|
|
138
138
|
this.positronCompositeBasemap = new Basemap({
|
|
139
139
|
title: 'Positron composite',
|
|
140
|
-
thumbnailUrl:
|
|
141
|
-
'https://gisco-services.ec.europa.eu/maps/wmts/OSMPositronComposite/EPSG3857/0/0/0.png',
|
|
140
|
+
thumbnailUrl: this.cfgUrls.positronCompositeThumbnail,
|
|
142
141
|
baseLayers: [
|
|
143
142
|
new WebTileLayer({
|
|
144
|
-
urlTemplate:
|
|
145
|
-
|
|
146
|
-
copyright:
|
|
147
|
-
'© <a href="https://www.openstreetmap.org/about" target="_blank">OpenStreetMap</a> (and) contributors, CC-BY-SA',
|
|
143
|
+
urlTemplate: this.cfgUrls.positronCompositeTemplate,
|
|
144
|
+
copyright: '© OpenStreetMap (and) contributors, CC-BY-SA',
|
|
148
145
|
}),
|
|
149
146
|
],
|
|
150
147
|
// referenceLayers: [
|
|
@@ -282,7 +279,10 @@ class MapViewer extends React.Component {
|
|
|
282
279
|
*/
|
|
283
280
|
renderBasemap() {
|
|
284
281
|
if (this.props.mapviewer_config.Download) return;
|
|
285
|
-
if (this.view)
|
|
282
|
+
if (this.view)
|
|
283
|
+
return (
|
|
284
|
+
<BasemapWidget view={this.view} mapViewer={this} urls={this.cfgUrls} />
|
|
285
|
+
);
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
renderLegend() {
|
|
@@ -233,6 +233,18 @@ const config = {
|
|
|
233
233
|
'https://geospatial.jrc.ec.europa.eu/geoserver/hotspots/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=',
|
|
234
234
|
serviceUrl: 'https://geospatial.jrc.ec.europa.eu/geoserver/hotspots/wms',
|
|
235
235
|
all_geo_klc: 'https://land.copernicus.eu/global/hsm/all_geo_klc_json',
|
|
236
|
+
positronCompositeThumbnail:
|
|
237
|
+
'https://gisco-services.ec.europa.eu/maps/wmts/OSMPositronComposite/EPSG3857/0/0/0.png',
|
|
238
|
+
positronCompositeTemplate:
|
|
239
|
+
'https://gisco-services.ec.europa.eu/maps/tiles/OSMPositronComposite/EPSG3857/{z}/{x}/{y}.png',
|
|
240
|
+
blossomCompositeThumbnail:
|
|
241
|
+
'https://gisco-services.ec.europa.eu/maps/wmts/OSMBlossomComposite/EPSG3857/0/0/0.png',
|
|
242
|
+
blossomCompositeTemplate:
|
|
243
|
+
'https://gisco-services.ec.europa.eu/maps/tiles/OSMBlossomComposite/EPSG3857/{z}/{x}/{y}.png',
|
|
244
|
+
countriesWorldThumbnail:
|
|
245
|
+
'https://gisco-services.ec.europa.eu/maps/wmts/CountriesWorld/EPSG3857/0/0/0.png',
|
|
246
|
+
countriesWorldTemplate:
|
|
247
|
+
'https://gisco-services.ec.europa.eu/maps/tiles/CountriesWorld/EPSG3857/{z}/{x}/{y}.png',
|
|
236
248
|
},
|
|
237
249
|
};
|
|
238
250
|
export default config;
|