@abi-software/flatmap-viewer 2.5.5 → 2.5.7
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 -3
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.
|
|
41
|
+
* ``npm install @abi-software/flatmap-viewer@2.5.7``
|
|
42
42
|
|
|
43
43
|
Documentation
|
|
44
44
|
-------------
|
package/package.json
CHANGED
package/src/interactions.js
CHANGED
|
@@ -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
|
-
|
|
388
|
-
|
|
389
|
-
|
|
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
|
|