You are here

class openlayers_layer_type_raw in Openlayers 6.2

Same name and namespace in other branches
  1. 7.2 plugins/layer_types/openlayers_layer_type_raw.inc \openlayers_layer_type_raw

@file OpenLayers Raw Layer Type

Hierarchy

Expanded class hierarchy of openlayers_layer_type_raw

2 string references to 'openlayers_layer_type_raw'
openlayers_layer_type_raw::options_init in includes/layer_types/raw.inc
Provide initial values for options.
_openlayers_openlayers_layer_types in includes/openlayers.layer_types.inc
Layer Type Implementation

File

includes/layer_types/raw.inc, line 7
OpenLayers 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_type' => 'openlayers_layer_type_raw',
      'layer_handler' => 'openlayers_raw',
      'vector' => TRUE,
      'baselayer' => FALSE,
    );
  }

  /**
   * Options form which generates layers
   */
  function options_form() {
    return array(
      array(
        '#value' => t('Raw layers should not be added
        through the UI.'),
      ),
    );
  }

  /**
   * Render.
   */
  function render(&$map) {
    drupal_add_js(drupal_get_path('module', 'openlayers') . '/includes/layer_types/js/raw.js');

    // $features = ;
    // $this->data['features'] = $features;
    return $this->options;
  }

}

Members