Introduction to OpenLayers
3. Working With Controls¶
In OpenLayers, controls provide a way for users to interact with your map. Some controls have a visual representation while others are invisible to the user. When you create a map with the default options, you are provided with a few visible default controls. These controls allow users to navigate with mouse movements (e.g., drag to pan, double-click to zoom in) and buttons to pan & zoom. In addition there are default controls that specify layer attribution and provide bookmarking of a location.
(Find a full list of available controls in the OpenLayers API documentation: http://dev.openlayers.org/apidocs/files/OpenLayers-js.html)
What this module covers
This module covers the basics of using controls in OpenLayers. In this module you will create an overview map, a scale line control, and a control to select features.
Boundless provides commercial open source software for internet mapping and geospatial application development. We are dedicated to the growth and support of open source software.
This work is licensed under a Creative Non Commercial-Commons Attribution-Share Alike 3.0 United States License. Feel free to use this material, but we ask that you please retain the Boundless branding, logos and style.