Behaviors are bundled functionality for maps. There are a number of behaviors available to maps, each with their own properties.

General Properties

Tooltips

Example:
'behaviors' = array(
  'openlayers_views_tooltip_id' = array(
    'id' => 'openlayers_views_tooltip_id',
    'type' => 'openlayers_behaviors_tooltip',
    'layer' => 'layer_name',
    'attribute' => 'openlayers_tooltip',
  ),
),

Theming the tooltip

There are two ways to theme the tooltip. The first is simply using css. To do this override the css selector .openlayers-behaviors-tooltip .

The second way to do this is to implement a theme override, this can be done by overriding theme_openlayers_behaviors_tooltip_container .

Popups

Example:
'behaviors' = array(
  'openlayers_views_popup' = array(
    'id' => 'openlayers_views_popup',
    'type' => 'openlayers_behaviors_popup',
    'attribute' => 'openlayers_popup',
  ),
),

Draw Features

Zoom to Layer(s)

Cluster

Declutter

Fullscreen

This behavior displays a 'fullscreen' button that allows the map to be viewed fullscreen. Fullscreen mode can also be turned on by default, or locked fullscreen.

'behaviors' = array (
  'some_id' = array (
    'id' => 'some_id',
    'type' => 'openlayers_behaviors_fullscreen',
    'defaut' => 'on', // optional, assumes 'off' if ommited.
  ),
),