@abi-software/flatmap-viewer 2.3.2-b.1 → 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/src/layers.js +3 -0
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);
|
package/src/layers.js
CHANGED
|
@@ -165,6 +165,9 @@ class MapFeatureLayers extends MapStylingLayers
|
|
|
165
165
|
this.__addStyleLayer(style.NervePolygonBorder, PATHWAYS_LAYER);
|
|
166
166
|
this.__addStyleLayer(style.NervePolygonFill, PATHWAYS_LAYER);
|
|
167
167
|
this.__addStyleLayer(style.FeatureNerveLayer, PATHWAYS_LAYER);
|
|
168
|
+
|
|
169
|
+
this.__addStyleLayer(style.PathHighlightLayer, PATHWAYS_LAYER);
|
|
170
|
+
this.__addStyleLayer(style.PathDashHighlightLayer, PATHWAYS_LAYER);
|
|
168
171
|
}
|
|
169
172
|
}
|
|
170
173
|
|