@abi-software/flatmapvuer 1.10.3-beta.7 → 1.10.3-beta.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "1.10.3-beta.7",
3
+ "version": "1.10.3-beta.8",
4
4
  "license": "Apache-2.0",
5
5
  "files": [
6
6
  "dist/*",
@@ -1948,7 +1948,18 @@ export default {
1948
1948
  this.emitConnectivityError(errorData);
1949
1949
 
1950
1950
  // highlight all available features
1951
- const featureIdsToHighlight = this.mapImp.modelFeatureIdList(featuresToHighlight);
1951
+ const connectivityFeatures = featuresToHighlight.reduce((arr, path) => {
1952
+ const connectivityObj = this.mapImp.pathways.paths[path];
1953
+ const connectivities = connectivityObj ? connectivityObj.connectivity : null;
1954
+ if (connectivities) {
1955
+ const flatFeatures = connectivities.flat(Infinity);
1956
+ arr.push(...flatFeatures);
1957
+ }
1958
+ return arr;
1959
+ }, []);
1960
+ const uniqueConnectivityFeatures = [...new Set(connectivityFeatures)];
1961
+ const combinedFeatures = [...featuresToHighlight, ...uniqueConnectivityFeatures];
1962
+ const featureIdsToHighlight = this.mapImp.modelFeatureIdList(combinedFeatures);
1952
1963
  const allFeaturesToHighlight = [
1953
1964
  ...featureIdsToHighlight,
1954
1965
  ...geojsonHighlights