class openlayers_layer_type_raw in Openlayers 7.2
Same name and namespace in other branches
- 6.2 includes/layer_types/raw.inc \openlayers_layer_type_raw
@file OpenLayers Raw Layer Type
Hierarchy
- class \openlayers_layer_type
- class \openlayers_layer_type_raw
Expanded class hierarchy of openlayers_layer_type_raw
File
- plugins/
layer_types/ openlayers_layer_type_raw.inc, line 11 - Raw Layer Type
View source
class openlayers_layer_type_raw extends openlayers_layer_type {
/**
* Provide initial values for options.
*/
function options_init() {
return array(
'layer_handler' => 'openlayers_raw',
'vector' => TRUE,
'isBaseLayer' => FALSE,
) + parent::options_init();
}
/**
* Options form which generates layers
*/
function options_form($defaults = array()) {
return array();
}
/**
* Render.
*/
function render(&$map) {
drupal_add_js(drupal_get_path('module', 'openlayers') . '/plugins/layer_types/openlayers_layer_type_raw.js');
// $features = ;
// $this->data['features'] = $features;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
openlayers_layer_type:: |
public | property | Stores the options for this layer. | |
openlayers_layer_type:: |
public | property | Stores the current map. | |
openlayers_layer_type:: |
public | function | ||
openlayers_layer_type:: |
function | Submit the options_form(). | 6 | |
openlayers_layer_type:: |
function | Validate the options_form(). | 11 | |
openlayers_layer_type:: |
function | Options form to configure layer-type-wide options. | 3 | |
openlayers_layer_type:: |
function | Set configuration and store map. | ||
openlayers_layer_type_raw:: |
function |
Options form which generates layers Overrides openlayers_layer_type:: |
||
openlayers_layer_type_raw:: |
function |
Provide initial values for options. Overrides openlayers_layer_type:: |
||
openlayers_layer_type_raw:: |
function |
Render. Overrides openlayers_layer_type:: |