Controls available in map arrays. Example:
'controls' => array(
'LayerSwitcher' => TRUE,
'Navigation' => TRUE,
'PanZoomBar' => TRUE,
'MousePosition' => TRUE,
),
- Attribution
- Values:
- boolean
- Description:
- Allows layers to provide attribution to the map if it exists.
- Example:
- TRUE
- KeyboardDefaults
- Values:
- boolean
- Description:
- Provides a the ability to use the keyboard to pan and zoom map.
- Example:
- TRUE
- LayerSwitcher
- Values:
- boolean
- Description:
- Gives user ability to switch Layers in the map interface.
- Example:
- TRUE
- MousePosition
- Values:
- boolean
- Description:
- Gives a visual indication of the mouse position to the user.
- Example:
- TRUE
- Navigation
- Values:
- boolean
- Description:
- Gives the user the ability to navigate the map interface. This needs to be enabled in order for ZoomBox to function.
- Example:
- TRUE
- PanZoomBar
- Values:
- boolean
- Description:
- Gives user ability to pan and zoom in the map interface.
- Example:
- TRUE
- Permalink
- Values:
- boolean
- Description:
- Provides a URL that will link to a specific map position.
- Example:
- TRUE
- ScaleLine
- Values:
- boolean
- Description:
- Provides the user with a line of scale in the map interface.
- Example:
- TRUE
- ZoomBox
- Values:
- boolean
- Description:
- Allows user to draw a box on screen to zoom with Shift + Click. The Navigation control needs to be enabled for this to function.
- Example:
- TRUE
- ZoomToMaxExtent
- Values:
- boolean
- Description:
- Provides button to zoom to the maximum extent of the map.
- Example:
- TRUE