Class FreeRoamMode

java.lang.Object
com.massifmaps.components.FreeRoamMode

public final class FreeRoamMode extends Object
Possible free roam modes: what a one-finger drag does, and which camera model the
tilt and the rotation follow.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    The accepted values of this constant namespace.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    First person: the camera stops orbiting anything.
    static final int
    Look: a one-finger drag looks around instead of panning - sideways turns the heading
    about the camera, up and down tilts the map the way the two-finger tilt does, so the
    camera still orbits its focus point.
    static final int
    Off: the standard map gestures.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FREE_ROAM_MODE_OFF

      public static final int FREE_ROAM_MODE_OFF
      Off: the standard map gestures. A one-finger drag pans the map.
      See Also:
    • FREE_ROAM_MODE_LOOK

      public static final int FREE_ROAM_MODE_LOOK
      Look: a one-finger drag looks around instead of panning - sideways turns the heading
      about the camera, up and down tilts the map the way the two-finger tilt does, so the
      camera still orbits its focus point. Panning moves to a two-finger drag; pinch and
      two-finger rotation are unchanged.
      See Also:
    • FREE_ROAM_MODE_FIRST_PERSON

      public static final int FREE_ROAM_MODE_FIRST_PERSON
      First person: the camera stops orbiting anything. A one-finger drag turns the view
      about the CAMERA on both axes, like a mouse in a first person game - the position
      never changes - and a two-finger drag moves, forward/back and strafing, the way the
      keys would. Pinch and two-finger rotation are off, since neither belongs to that
      control scheme.

      The camera model applies to every source, not just to touch: setTilt and
      setMapRotation turn the view in place too, so a camera driven by the device's
      orientation behaves exactly like the drag.
      See Also:
  • Constructor Details

    • FreeRoamMode

      public FreeRoamMode()