@abi-software/flatmap-viewer 2.4.1-b.5 → 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 +1 -1
- package/package.json +1 -1
- package/src/interactions.js +5 -1
- package/src/main.js +1 -0
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.
|
|
41
|
+
* ``npm install @abi-software/flatmap-viewer@2.4.2-b.2``
|
|
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
|