@abi-software/flatmap-viewer 2.4.2-b.1 → 2.4.2-b.2

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.1``
41
+ * ``npm install @abi-software/flatmap-viewer@2.4.2-b.2``
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.1",
3
+ "version": "2.4.2-b.2",
4
4
  "description": "Flatmap viewer using Maplibre GL",
5
5
  "repository": "https://github.com/AnatomicMaps/flatmap-viewer.git",
6
6
  "main": "src/main.js",
@@ -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