class openlayers_style_plugin in Openlayers 6.2
Base class for style plugins
We define base classes in the core module. All other parent classes can be autoloaded through ctools.
Hierarchy
- class \openlayers_style_plugin
Expanded class hierarchy of openlayers_style_plugin
2 string references to 'openlayers_style_plugin'
- openlayers_test_rnd_factor.inc in tests/
plugins/ style_plugin/ openlayers_test_rnd_factor.inc - Test
- openlayers_test_rnd_int.inc in tests/
plugins/ style_plugin/ openlayers_test_rnd_int.inc - Test
File
- ./
openlayers.module, line 951 - Main OpenLayers API File
View source
class openlayers_style_plugin {
/**
* Return true if this plugin can handle
* the given property
*/
function can_handle_property($propname) {
return array_key_exists($propname, $this
->get_context_properties());
}
/**
* Get an array of style property callbacks
*
* @return
* Array of <property_name> => <callback_name>
*/
function get_context_properties() {
return array();
}
/**
* Initial default options.
*
* @return
* Array of default options.
*/
function options_init() {
return array();
}
/**
* Options form.
*
* @param $defaults
* Array of default values for the form.
* @return
* Array of Drupal form elements.
*/
function options_form($defaults = array()) {
return array();
}
/**
* Render the style.
*/
function render() {
// Render style.
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
openlayers_style_plugin:: |
function | Return true if this plugin can handle the given property | ||
openlayers_style_plugin:: |
function | Get an array of style property callbacks | 2 | |
openlayers_style_plugin:: |
function | Options form. | 2 | |
openlayers_style_plugin:: |
function | Initial default options. | 2 | |
openlayers_style_plugin:: |
function | Render the style. | 2 |