You are here

class openlayers_test_rnd_factor in Openlayers 6.2

Style Plugin for testing purposes.

Hierarchy

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