You are here

function openlayers_behavior_cluster::options_init in Openlayers 7.2

Same name and namespace in other branches
  1. 6.2 includes/behaviors/openlayers_behavior_cluster.inc \openlayers_behavior_cluster::options_init()

Provide initial values for options.

Overrides openlayers_behavior::options_init

File

plugins/behaviors/openlayers_behavior_cluster.inc, line 14
Implementation of OpenLayers Cluster behavior.

Class

openlayers_behavior_cluster
Cluster behavior

Code

function options_init() {
  return array(
    'clusterlayer' => array(),
    'distance' => '20',
    'threshold' => NULL,
    'display_cluster_numbers' => TRUE,
    'middle_lower_bound' => '15',
    'middle_upper_bound' => '50',
    'low_color' => 'rgb(141, 203, 61)',
    'low_stroke_color' => 'rgb(141, 203, 61)',
    'low_opacity' => '0.8',
    'low_point_radius' => '10',
    'low_label_outline' => '1',
    'middle_color' => 'rgb(49, 190, 145)',
    'middle_stroke_color' => 'rgb(49, 190, 145)',
    'middle_opacity' => '0.8',
    'middle_point_radius' => '16',
    'middle_label_outline' => '1',
    'high_color' => 'rgb(35, 59, 177)',
    'high_stroke_color' => 'rgb(35, 59, 177)',
    'high_opacity' => '0.8',
    'high_point_radius' => '22',
    'high_label_outline' => '1',
    'label_low_color' => '#000000',
    'label_low_opacity' => '0.8',
    'label_middle_color' => '#000000',
    'label_middle_opacity' => '0.8',
    'label_high_color' => '#000000',
    'label_high_opacity' => '0.8',
  );
}