@abi-software/flatmap-viewer 2.3.2-b.2 → 2.3.2-b.3
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/README.rst +1 -1
- package/package.json +1 -1
- package/src/interactions.js +8 -3
package/README.rst
CHANGED
|
@@ -38,7 +38,7 @@ The map server endpoint is specified as ``MAP_ENDPOINT`` in ``src/main.js``. It
|
|
|
38
38
|
Package Installation
|
|
39
39
|
====================
|
|
40
40
|
|
|
41
|
-
* ``npm install @abi-software/flatmap-viewer@2.3.2-b.
|
|
41
|
+
* ``npm install @abi-software/flatmap-viewer@2.3.2-b.3``
|
|
42
42
|
|
|
43
43
|
Documentation
|
|
44
44
|
-------------
|
package/package.json
CHANGED
package/src/interactions.js
CHANGED
|
@@ -330,9 +330,14 @@ export class UserInteractions
|
|
|
330
330
|
//====================================
|
|
331
331
|
{
|
|
332
332
|
if (feature !== undefined) {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
333
|
+
const state = this._map.getFeatureState(feature);
|
|
334
|
+
if ('hidden' in state) {
|
|
335
|
+
if (enable) {
|
|
336
|
+
this._map.removeFeatureState(feature, 'hidden');
|
|
337
|
+
} else if (!state.hidden) {
|
|
338
|
+
this._map.setFeatureState(feature, { 'hidden': true });
|
|
339
|
+
}
|
|
340
|
+
} else if (!enable) {
|
|
336
341
|
this._map.setFeatureState(feature, { 'hidden': true });
|
|
337
342
|
}
|
|
338
343
|
this.__enableFeatureMarker(feature.id, enable);
|