@abi-software/flatmap-viewer 2.4.2-b.2 → 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 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.2``
41
+ * ``npm install @abi-software/flatmap-viewer@2.4.2-b.3``
42
42
 
43
43
  Documentation
44
44
  -------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmap-viewer",
3
- "version": "2.4.2-b.2",
3
+ "version": "2.4.2-b.3",
4
4
  "description": "Flatmap viewer using Maplibre GL",
5
5
  "repository": "https://github.com/AnatomicMaps/flatmap-viewer.git",
6
6
  "main": "src/main.js",
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.01,
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': {