@abi-software/flatmap-viewer 2.2.4 → 2.2.5

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.2.4``
41
+ * ``npm install @abi-software/flatmap-viewer@2.2.5``
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.2.4",
3
+ "version": "2.2.5",
4
4
  "description": "Flatmap viewer using Maplibre GL",
5
5
  "repository": "https://github.com/AnatomicMaps/flatmap-viewer.git",
6
6
  "main": "src/main.js",
@@ -913,7 +913,7 @@ export class UserInteractions
913
913
  //=======================
914
914
  {
915
915
  const state = this._map.getFeatureState(feature);
916
- return !(('hidden' in state && state.hidden));
916
+ return true;
917
917
  }
918
918
 
919
919
  enablePaths_(enable, event)
package/src/styling.js CHANGED
@@ -117,6 +117,7 @@ export class FeatureFillLayer extends VectorStyleLayer
117
117
  const paintStyle = {
118
118
  'fill-color': [
119
119
  'case',
120
+ ['boolean', ['feature-state', 'selected'], false], '#0F0',
120
121
  ['has', 'colour'], ['get', 'colour'],
121
122
  ['boolean', ['feature-state', 'active'], false], coloured ? '#D88' : '#CCC',
122
123
  ['any',