Class ScaleHandler

java.lang.Object
com.here.NativeBase
com.here.sdk.gestures.ScaleHandler

public final class ScaleHandler extends NativeBase

This class handles scale events by zooming the map accordingly.

  • Method Details

    • onScale

      public void onScale(float originX, float originY, float factor)

      To be called to trigger scale gesture handling.

      Parameters:
      originX -

      Origin of the scaling on x axis in pixels.

      originY -

      Origin of the scaling on y axis in pixels.

      factor -

      The scale factor. Values above 1.0 will zoom in and values below will zoom out.