@abi-software/flatmap-viewer 2.4.2-b.1 → 2.4.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 +5 -1
- package/src/styling.js +3 -2
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.4.2-b.
|
|
41
|
+
* ``npm install @abi-software/flatmap-viewer@2.4.2-b.3``
|
|
42
42
|
|
|
43
43
|
Documentation
|
|
44
44
|
-------------
|
package/package.json
CHANGED
package/src/interactions.js
CHANGED
|
@@ -192,11 +192,15 @@ export class UserInteractions
|
|
|
192
192
|
// SCKAN path and SYSTEMS controls for FC maps
|
|
193
193
|
this._map.addControl(new SystemsControl(flatmap, this.__systemsManager.systems));
|
|
194
194
|
this._map.addControl(new SCKANControl(flatmap, flatmap.options.layerOptions));
|
|
195
|
-
this._map.addControl(new AnnotatedControl(this, flatmap.options.layerOptions));
|
|
196
195
|
} else {
|
|
197
196
|
// Connectivity taxon control for AC maps
|
|
198
197
|
this._map.addControl(new TaxonsControl(flatmap));
|
|
199
198
|
}
|
|
199
|
+
|
|
200
|
+
if (flatmap.options.annotator) {
|
|
201
|
+
// Show/hide annotated paths
|
|
202
|
+
this._map.addControl(new AnnotatedControl(this, flatmap.options.layerOptions));
|
|
203
|
+
}
|
|
200
204
|
}
|
|
201
205
|
|
|
202
206
|
// Handle mouse events
|
package/src/styling.js
CHANGED
|
@@ -648,7 +648,7 @@ class CentrelineLayer extends VectorStyleLayer
|
|
|
648
648
|
],
|
|
649
649
|
'line-opacity': [
|
|
650
650
|
'case',
|
|
651
|
-
['boolean', ['feature-state', 'hidden'], false], 0
|
|
651
|
+
['boolean', ['feature-state', 'hidden'], false], 0,
|
|
652
652
|
['boolean', ['feature-state', 'selected'], false], 1.0,
|
|
653
653
|
['boolean', ['feature-state', 'active'], false], 1.0,
|
|
654
654
|
(this.__type == 'edge') ? 0.4 : 0.8
|
|
@@ -673,7 +673,8 @@ class CentrelineLayer extends VectorStyleLayer
|
|
|
673
673
|
'filter': [
|
|
674
674
|
'all',
|
|
675
675
|
['==', '$type', 'LineString'],
|
|
676
|
-
['==', 'kind', 'centreline']
|
|
676
|
+
['==', 'kind', 'centreline'],
|
|
677
|
+
['has', 'label']
|
|
677
678
|
],
|
|
678
679
|
'paint': this.paintStyle(options),
|
|
679
680
|
'layout': {
|