OpenLayers API

Allows users to place a map on a page, set a static location, or use the user's location obtained using a Geo location view. Use OpenLayers API as a layer between a mapping API, such as Open Source Maps, and the user interface that you are building. To use Map with another mapping API like OSM maps, you must also drop OpenLayersAPI onto the page.

API key

For some map services, you must specify the API key so that the service can authenticate the requester. Enter the API key that is appropriate for the map service you use. For example, Bing Maps requires a Bing API key, but OpenStreet Maps does not need a key.

The OpenLayers API view is also used in association with the Geo coder and Geo location views. For more information, see Geo coder and Geo location.

Events

Set or modify the event handlers for the view in the Events tab. You can set events to be triggered programmatically or when a user interacts with the view. For information about how to define and code events, see User-defined events.
For the OpenLayers API view, you can activate the following types of event handlers:
  • On load when the page loads.
  • On API load when the API loads.

Example

See the example in Map.

Methods

For detailed information on the available methods for OpenLayers API, see the OpenLayersAPI JavaScript API.

Additional resources

For information about how to create a coach or page, see Building coaches.
For information about standard properties (General, Configuration, Positioning, Visibility, and HTML Attributes), see View properties.