Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
result,
{
focused: true,
selected: true
},
true
);
this.resultSelected$.next(result);
const features = [];
for (const feature of this.store.all()) {
feature.data === this.resultSelected$.getValue().data ?
feature.data.meta.style = this.getSelectedMarkerStyle(feature.data) :
feature.data.meta.style = this.getMarkerStyle(feature.data);
features.push(feature.data);
}
this.map.overlay.setFeatures(features, FeatureMotion.None);
if (this.zoomAuto) {
const olFeature = this.format.readFeature(this.resultSelected$.getValue().data, {
dataProjection: this.resultSelected$.getValue().data.projection,
featureProjection: this.map.projection
});
moveToOlFeatures(this.map, [olFeature], FeatureMotion.Default);
}
this.isResultSelected$.next(true);
this.initialized = false;
}
const feature3: Feature = {
type: FEATURE,
projection: 'EPSG:4326',
meta: {
id: 3
},
properties: {},
geometry: {
type: 'Polygon',
coordinates: [[[-71, 46.8], [-73, 47], [-71.2, 46.6]]]
}
};
this.map.overlay.setFeatures(
[feature1, feature2, feature3],
FeatureMotion.None
);
}
}