Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@HostListener('document:keydown.z', ['$event']) onZoomHandler(event: KeyboardEvent) {
if (this.isResultSelected$.getValue() === true) {
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);
}
}