Class ScaleHandler


  • public final class ScaleHandler
    extends NativeBase

    This class handles scale events by zooming the map accordingly.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onScale​(float originX, float originY, float factor)
      To be called to trigger scale gesture handling.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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.