openlayers_plus_behavior_tooltips.inc in OpenLayers Plus 7
File
behaviors/openlayers_plus_behavior_tooltips.inc
View source
<?php
class openlayers_plus_behavior_tooltips extends openlayers_behavior {
function options_init() {
return array(
'positioned' => FALSE,
);
}
function options_form($defaults) {
return array(
'positioned' => array(
'#type' => 'checkbox',
'#title' => t('Position tooltip over feature'),
'#default_value' => isset($defaults['positioned']) ? $defaults['positioned'] : array(),
),
);
}
function render(&$map) {
drupal_add_js(drupal_get_path('module', 'openlayers_plus') . '/behaviors/openlayers_plus_behavior_tooltips.js');
return $this->options;
}
}