@abi-software/flatmap-viewer 2.5.5 → 2.5.6

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.5.5``
41
+ * ``npm install @abi-software/flatmap-viewer@2.5.6``
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.5.5",
3
+ "version": "2.5.6",
4
4
  "description": "Flatmap viewer using Maplibre GL",
5
5
  "repository": "https://github.com/AnatomicMaps/flatmap-viewer.git",
6
6
  "main": "src/main.js",
@@ -21,7 +21,6 @@
21
21
  "@deck.gl/core": "^8.9.33",
22
22
  "@deck.gl/layers": "^8.9.33",
23
23
  "@deck.gl/mapbox": "^8.9.33",
24
- "@mapbox/mapbox-gl-draw": "^1.4.3",
25
24
  "@turf/area": "^6.5.0",
26
25
  "@turf/bbox": "^6.5.0",
27
26
  "@turf/helpers": "^6.5.0",
@@ -39,7 +38,7 @@
39
38
  "@babel/plugin-transform-runtime": "^7.5.5",
40
39
  "@babel/preset-env": "^7.10.4",
41
40
  "babel-loader": "^8.1.0",
42
- "browser-sync": "^2.26.7",
41
+ "browser-sync": "^3.0.2",
43
42
  "bs-fullscreen-message": "^1.1.0",
44
43
  "clean-webpack-plugin": "^3.0.0",
45
44
  "css-loader": "^6.7.3",
@@ -384,9 +384,11 @@ export class UserInteractions
384
384
  {
385
385
  // External feature id to map's GeoJSON id
386
386
  const mapId = this.__featureIdToMapId.get(featureId)
387
- const feature = this.mapFeature(mapId)
388
- if (feature !== undefined) {
389
- this._map.setFeatureState(feature, { 'annotated': true })
387
+ if (mapId) {
388
+ const feature = this.mapFeature(mapId)
389
+ if (feature !== undefined) {
390
+ this._map.setFeatureState(feature, { 'annotated': true })
391
+ }
390
392
  }
391
393
  }
392
394