@eeacms/volto-arcgis-block
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -7,4 +7,12 @@ ### Changelog | ||
#### [0.1.10](https://github.com/eea/volto-arcgis-block/compare/0.1.9...0.1.10) | ||
- Update use-cases default center and zoom [`#26`](https://github.com/eea/volto-arcgis-block/pull/26) | ||
- Popup bug fix [`#25`](https://github.com/eea/volto-arcgis-block/pull/25) | ||
#### [0.1.9](https://github.com/eea/volto-arcgis-block/compare/0.1.8...0.1.9) | ||
> 14 October 2021 | ||
- New features for use-cases [`#24`](https://github.com/eea/volto-arcgis-block/pull/24) | ||
- Added new level when point has multiple use cases and minor improvements [`#23`](https://github.com/eea/volto-arcgis-block/pull/23) | ||
@@ -11,0 +19,0 @@ - Remove a debugger; [`1bda983`](https://github.com/eea/volto-arcgis-block/commit/1bda983bd6c5db9787c1f28b3e86a5b8e4114c5c) |
{ | ||
"name": "@eeacms/volto-arcgis-block", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "volto-arcgis-block: Volto add-on", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -18,4 +18,4 @@ const markerType = 'simple-marker'; | ||
div: 'mapDiv', | ||
center: [15, 50], | ||
zoom: 1, | ||
center: [10.78, 30], | ||
zoom: 0, | ||
}, | ||
@@ -22,0 +22,0 @@ Services: { |
@@ -22,12 +22,5 @@ import React from 'react'; | ||
this.layerControl.showLayer(layerRegion.id); | ||
if (this.view.center) { | ||
this.view.center.latitude = this.center[1]; | ||
this.view.center.longitude = this.center[0]; | ||
} else { | ||
this.view.center = { | ||
latitude: this.center[1], | ||
longitude: this.center[0], | ||
}; | ||
} | ||
this.view.zoom = 1; | ||
this.view.center = this.center; | ||
this.view.zoom = 0; | ||
mapViewer.setState(() => ({ | ||
@@ -34,0 +27,0 @@ useCaseLevel: 1, |
@@ -182,2 +182,4 @@ import React, { createRef } from 'react'; | ||
setMapFunctions(view, layerControl, navigationControl, layerSpatial) { | ||
const prohibitedKeys = ['+', '-', 'Shift', '_', '=']; | ||
view.on('mouse-wheel', function (event) { | ||
@@ -202,8 +204,5 @@ event.stopPropagation(); | ||
}); | ||
view.on('drag', ['Shift', 'Control'], function (event) { | ||
event.stopPropagation(); | ||
}); | ||
const prohibitedKeys = ['+', '-', 'Shift', '_', '=']; | ||
view.on('key-down', function (event) { | ||
@@ -210,0 +209,0 @@ const keyPressed = event.key; |
Sorry, the diff of this file is not supported yet
10498987
4790