ScaleHandler (API Reference)
Package com.here.sdk.gestures
Class ScaleHandler
java.lang.Object
com.here.NativeBase
com.here.sdk.gestures.ScaleHandler
This class handles scale events by zooming the map accordingly.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonScale(float originX, float originY, float factor) To be called to trigger scale gesture handling.
-
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.
-