NavigationControl.js


constructor

NavigationControl class is responsible for displaying map navigation UI. Controls should be added using Map
*Note: Touching the zoom rail will not work for touch-enabled devices!

Options:
  • offset(Array)The offset in pixels from the control's original position (default: [0, 0])
  • panOffset(Number)The number of pixels to move the map when panning (default: 100)
  • panControl(Boolean)If true, the pan control will be displayed (default: true)
  • zoomControl(Boolean)If true, the zoom control will be displayed (default: true)
Parameter Type Description
options Object The options of the control