Function zoomOnTargetPosition

  • Zooms and moves the map in such a way that the given target position remains at the same position after the zoom.

    Parameters

    • mapView: MapView

      Instance of MapView.

    • targetNDCx: number

      Target x position in NDC space.

    • targetNDCy: number

      Target y position in NDC space.

    • zoomLevel: number

      The desired zoom level.

    • maxTiltAngle: number = MAX_TILT_RAD

      The maximum tilt angle to comply by, in globe projection, in radian.

    Returns boolean

    false if requested zoom cannot be achieved due to the map view's maximum bounds geoMaxBounds,true otherwise.

Generated using TypeDoc