class openlayers_test_rnd_factor in Openlayers 6.2
Style Plugin for testing purposes.
Hierarchy
- class \openlayers_style_plugin
- class \openlayers_test_rnd_factor
Expanded class hierarchy of openlayers_test_rnd_factor
1 string reference to 'openlayers_test_rnd_factor'
- openlayers_test_rnd_factor.inc in tests/
plugins/ style_plugin/ openlayers_test_rnd_factor.inc - Test
File
- tests/
plugins/ style_plugin/ openlayers_test_rnd_factor.inc, line 22 - Test
View source
class openlayers_test_rnd_factor extends openlayers_style_plugin {
/**
* Provide initial values for options.
*/
function options_init() {
return array();
}
/**
* Options form.
*/
function options_form($defaults = array()) {
$form = array();
return $form;
}
/**
* Get an array of style property callbacks
*/
function get_context_properties() {
return array(
'fillOpacity' => 'getFactor',
'strokeOpacity' => 'getFactor',
'graphicOpacity' => 'getFactor',
);
}
/**
* Render function
*/
function render() {
// Add JS
drupal_add_js(drupal_get_path('module', 'openlayers_test') . '/plugins/style_plugin/openlayers_test_rnd_factor.js');
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
openlayers_style_plugin:: |
function | Return true if this plugin can handle the given property | ||
openlayers_test_rnd_factor:: |
function |
Get an array of style property callbacks Overrides openlayers_style_plugin:: |
||
openlayers_test_rnd_factor:: |
function |
Options form. Overrides openlayers_style_plugin:: |
||
openlayers_test_rnd_factor:: |
function |
Provide initial values for options. Overrides openlayers_style_plugin:: |
||
openlayers_test_rnd_factor:: |
function |
Render function Overrides openlayers_style_plugin:: |