@eeacms/volto-arcgis-block 0.1.198 → 0.1.199
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,10 +4,16 @@ 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.199](https://github.com/eea/volto-arcgis-block/compare/0.1.198...0.1.199) - 18 September 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Update package.json [Urkorue - [`600bf5b`](https://github.com/eea/volto-arcgis-block/commit/600bf5bccea2f2ca64dc0575f0895cf1b9a7084a)]
|
|
7
12
|
### [0.1.198](https://github.com/eea/volto-arcgis-block/compare/0.1.197...0.1.198) - 18 September 2023
|
|
8
13
|
|
|
9
14
|
#### :hammer_and_wrench: Others
|
|
10
15
|
|
|
16
|
+
- Merge pull request #565 from eea/develop [Unai Bolivar - [`9ca8b96`](https://github.com/eea/volto-arcgis-block/commit/9ca8b965f6a61d20b63ed2e65dd22edf646ec9de)]
|
|
11
17
|
- ran linting scripts [ujbolivar - [`8c1f925`](https://github.com/eea/volto-arcgis-block/commit/8c1f925ca7712da160036c9d85e51f1a94080eca)]
|
|
12
18
|
- Bug: Fixed breaking custom map viewer bug [ujbolivar - [`7867924`](https://github.com/eea/volto-arcgis-block/commit/7867924f412266e624ee567ad47cce29b049cc83)]
|
|
13
19
|
### [0.1.197](https://github.com/eea/volto-arcgis-block/compare/0.1.196...0.1.197) - 14 September 2023
|
package/package.json
CHANGED
|
@@ -139,7 +139,8 @@ class AreaWidget extends React.Component {
|
|
|
139
139
|
|
|
140
140
|
loadNutsService(id, levels) {
|
|
141
141
|
this.clearWidget();
|
|
142
|
-
|
|
142
|
+
document.querySelector('.esri-attribution__powered-by').style.display =
|
|
143
|
+
'flex';
|
|
143
144
|
levels.forEach((level) => {
|
|
144
145
|
var layer = new FeatureLayer({
|
|
145
146
|
id: id,
|
|
@@ -162,7 +163,8 @@ class AreaWidget extends React.Component {
|
|
|
162
163
|
|
|
163
164
|
loadCountriesService(id) {
|
|
164
165
|
this.clearWidget();
|
|
165
|
-
|
|
166
|
+
document.querySelector('.esri-attribution__powered-by').style.display =
|
|
167
|
+
'flex';
|
|
166
168
|
var layer = new FeatureLayer({
|
|
167
169
|
id: id,
|
|
168
170
|
//url: this.props.urls.outsideEu,
|
|
@@ -260,7 +262,8 @@ class AreaWidget extends React.Component {
|
|
|
260
262
|
document.querySelector('.drawRectanglePopup-block').style.display =
|
|
261
263
|
'block';
|
|
262
264
|
}
|
|
263
|
-
|
|
265
|
+
document.querySelector('.esri-attribution__powered-by').style.display =
|
|
266
|
+
'none';
|
|
264
267
|
}
|
|
265
268
|
|
|
266
269
|
/**
|
|
@@ -243,6 +243,8 @@ class BasemapWidget extends React.Component {
|
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
245
|
this.props.view.ui.add(this.container.current, 'top-right');
|
|
246
|
+
document.querySelector('.esri-attribution__powered-by').style.display =
|
|
247
|
+
'none';
|
|
246
248
|
}
|
|
247
249
|
/**
|
|
248
250
|
* This method renders the component
|
|
@@ -143,6 +143,8 @@ class MapViewer extends React.Component {
|
|
|
143
143
|
new WebTileLayer({
|
|
144
144
|
urlTemplate:
|
|
145
145
|
'https://gisco-services.ec.europa.eu/maps/tiles/OSMPositronComposite/EPSG3857/{z}/{x}/{y}.png',
|
|
146
|
+
copyright:
|
|
147
|
+
'© <a href="https://www.openstreetmap.org/about" target="_blank">OpenStreetMap</a> (and) contributors, CC-BY-SA',
|
|
146
148
|
}),
|
|
147
149
|
],
|
|
148
150
|
// referenceLayers: [
|
|
@@ -232,7 +234,6 @@ class MapViewer extends React.Component {
|
|
|
232
234
|
//we invoke the setState method, that changes the state and forces a
|
|
233
235
|
//react component to render itself again
|
|
234
236
|
//this.setState({});
|
|
235
|
-
this.view.ui._removeComponents(['attribution']);
|
|
236
237
|
});
|
|
237
238
|
}
|
|
238
239
|
|