Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
} else {
this.m_needsRenderLastFrame = true;
}
}
this.currentZoom =
!this.inertiaEnabled || Math.abs(this.zoomLevelTargeted - this.m_startZoom) < EPSILON
? this.zoomLevelTargeted
: this.easeOutCubic(
this.m_startZoom,
this.zoomLevelTargeted,
Math.min(1, this.m_zoomAnimationTime / this.zoomInertiaDampingDuration)
);
MapViewUtils.zoomOnTargetPosition(
this.mapView,
this.m_zoomTargetNormalizedCoordinates.x,
this.m_zoomTargetNormalizedCoordinates.y,
this.currentZoom,
this.m_maxTiltAngle
);
this.updateMapView();
}
zoomOnTargetPosition(
targetPositionOnScreenXinNDC: number,
targetPositionOnScreenYinNDC: number,
zoomLevel: number
) {
MapViewUtils.zoomOnTargetPosition(
this.mapView,
targetPositionOnScreenXinNDC,
targetPositionOnScreenYinNDC,
zoomLevel,
this.m_maxTiltAngle
);
}