You are here

class styled_google_map_style_plugin in Styled Google Map 7.2

Same name and namespace in other branches
  1. 7 styled_google_views/styled_google_map_style_plugin.inc \styled_google_map_style_plugin

Class for plugin.

@codingStandardsIgnoreStart

Hierarchy

Expanded class hierarchy of styled_google_map_style_plugin

1 string reference to 'styled_google_map_style_plugin'
styled_google_views_views_plugins in styled_google_views/styled_google_views.views.inc
Implements hook_views_plugin().

File

styled_google_views/styled_google_map_style_plugin.inc, line 14

View source
class styled_google_map_style_plugin extends views_plugin_style {

  /**
   * Modifies the default options inherited by this plugin.
   *
   * @return array
   *   The list of options provided by this plugin.
   */
  public function option_definition() {

    // @codingStandardsIgnoreEnd
    $options = parent::option_definition();
    $options['styled_google_map_view_cluster_pin'] = array(
      'default' => '',
    );
    $options['styled_google_map_view_active_pin'] = array(
      'default' => '',
    );
    $options['styled_google_map_view_default_pin'] = array(
      'default' => '',
    );
    $options['styled_google_map_view_height'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_WIDTH,
    );
    $options['styled_google_map_view_width'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_HEIGHT,
    );
    $options['styled_google_map_view_style'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_STYLE,
    );
    $options['styled_google_map_view_zoom_default'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_ZOOM,
    );
    $options['styled_google_map_view_zoom_max'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_MAX_ZOOM,
    );
    $options['styled_google_map_view_zoom_min'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_MIN_ZOOM,
    );
    $options['styled_google_map_view_maptype'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_MAP_TYPE,
    );
    $options['styled_google_map_view_maptypecontrol'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_MAP_TYPE_CONTROL,
    );
    $options['styled_google_map_view_scalecontrol'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_SCALE_CONTROL,
    );
    $options['styled_google_map_view_rotatecontrol'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_ROTATE_CONTROL,
    );
    $options['styled_google_map_view_draggable'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_DRAGGABLE,
    );
    $options['styled_google_map_view_mobile_draggable'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_MOBILE_DRAGGABLE,
    );
    $options['styled_google_map_view_zoomcontrol'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_ZOOM_CONTROL,
    );
    $options['styled_google_map_view_streetviewcontrol'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_STREET_VIEW_CONTROL,
    );
    $options['styled_google_map_view_scrollwheel'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_SCROLLWHEEL,
    );
    $options['styled_google_map_view_shadow_style'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_SHADOW_STYLE,
    );
    $options['styled_google_map_view_padding'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_PADDING,
    );
    $options['styled_google_map_view_border_radius'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_BORDER_RADIUS,
    );
    $options['styled_google_map_view_border_width'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_BORDER_WIDTH,
    );
    $options['styled_google_map_view_border_color'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_BORDER_COLOR,
    );
    $options['styled_google_map_view_background_color'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_BACKGROUND_COLOR,
    );
    $options['styled_google_map_view_min_width'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_MIN_WIDTH,
    );
    $options['styled_google_map_view_max_width'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_MAX_WIDTH,
    );
    $options['styled_google_map_view_min_height'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_MIN_HEIGHT,
    );
    $options['styled_google_map_view_max_height'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_MAX_HEIGHT,
    );
    $options['styled_google_map_view_auto_close'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_AUTO_CLOSE,
    );
    $options['styled_google_map_view_arrow_size'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_ARROW_SIZE,
    );
    $options['styled_google_map_view_arrow_position'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_ARROW_POSITION,
    );
    $options['styled_google_map_view_arrow_style'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_ARROW_STYLE,
    );
    $options['styled_google_map_view_disable_auto_pan'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_DISABLE_AUTO_PAN,
    );
    $options['styled_google_map_view_second_click'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_SECOND_CLICK,
    );
    $options['styled_google_map_view_hide_close_button'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_HIDE_CLOSE_BUTTON,
    );
    $options['styled_google_map_view_disable_animation'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_DISABLE_ANIMATION,
    );
    $options['styled_google_map_view_background_class'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_BACKGROUND_CLASS,
    );
    $options['styled_google_map_view_content_container_class'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_CONTENT_CONTAINER_CLASS,
    );
    $options['styled_google_map_view_arrow_class'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_ARROW_CLASS,
    );
    $options['styled_google_map_view_arrow_outer_class'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_ARROW_OUTER_CLASS,
    );
    $options['styled_google_map_view_arrow_inner_class'] = array(
      'default' => STYLED_GOOGLE_MAP_DEFAULT_ARROW_INNER_CLASS,
    );
    $options['styled_google_map_view_center_coordinates_lon'] = array(
      'default' => '',
    );
    $options['styled_google_map_view_center_coordinates_lat'] = array(
      'default' => '',
    );
    $options['map_center'] = array(
      'default' => '',
    );
    $options['popup'] = array(
      'default' => '',
    );
    $options['popup_source'] = array(
      'default' => '',
    );
    $options['data_source'] = array(
      'default' => '',
    );
    $options['pin_source'] = array(
      'default' => '',
    );
    $options['category_source'] = array(
      'default' => '',
    );
    return $options;
  }

  /**
   * Modifies the options form inherited by this plugin.
   *
   * @param array $form
   *   The form being generated.
   * @param array $form_state
   *   The state that the form has been posted in.
   * @codingStandardsIgnoreStart
   */
  public function options_form(&$form, &$form_state) {
    parent::options_form($form, $form_state);

    // @codingStandardsIgnoreEnd
    $handlers = $this->display->handler
      ->get_handlers('field');
    $pin_source_options = array();
    foreach ($handlers as $handle) {

      // Get all location sources.
      if (!empty($handle->field_info['type']) && $handle->field_info['type'] == 'geofield') {
        $data_source_options[$handle->options['id']] = !empty($handle->options['label']) ? $handle->options['label'] : $handle->options['id'];
      }

      // Get all pin sources.
      if (!empty($handle->field_info['type']) && $handle->field_info['type'] == 'image') {
        $pin_source_options[$handle->options['id']] = !empty($handle->options['label']) ? $handle->options['label'] : $handle->options['id'];
      }

      // Get all popup sources.
      $source_options[$handle->options['id']] = !empty($handle->options['label']) ? $handle->options['label'] : $handle->options['id'];
    }
    $source_options = array_diff($source_options, $pin_source_options, $data_source_options);
    $form['data_source'] = array(
      '#type' => 'select',
      '#title' => t('Which field contains geodata?'),
      '#description' => t('Needs to be a geofield.'),
      '#options' => $data_source_options,
      '#default_value' => $this->options['data_source'] ? $this->options['data_source'] : NULL,
    );
    $form['pin_source'] = array(
      '#type' => 'select',
      '#title' => t('Which field contains the pin image?'),
      '#description' => t('Needs to be an image field.'),
      '#options' => $pin_source_options,
      '#default_value' => $this->options['pin_source'] ? $this->options['pin_source'] : NULL,
    );
    $form['popup_source'] = array(
      '#type' => 'select',
      '#title' => t('Which field contains the popup text?'),
      '#description' => t('Can be a field or rendered entity field.'),
      '#options' => $source_options,
      '#default_value' => $this->options['popup_source'] ? $this->options['popup_source'] : NULL,
    );
    $form['category_source'] = array(
      '#type' => 'select',
      '#title' => t('Which field contains the category?'),
      '#description' => t('This will be used to have a class wrapper around the bubble to allow different styling per category.'),
      '#options' => $source_options,
      '#default_value' => $this->options['category_source'] ? $this->options['category_source'] : NULL,
    );
    $form['styled_google_map_view_height'] = array(
      '#type' => 'textfield',
      '#title' => t('Height'),
      '#size' => '30',
      '#description' => t('This field determines the height of the styled Google map'),
      '#default_value' => $this->options['styled_google_map_view_height'],
    );
    $form['styled_google_map_view_default_pin'] = array(
      '#type' => 'textfield',
      '#title' => t('Default pin image'),
      '#description' => t('URL to the pin image. You can use a !wrapper for the url. Leave empty for using the default Google pin.', array(
        '!wrapper' => l(t('Stream wrapper'), 'https://drupal.org/project/system_stream_wrapper', array(
          'attributes' => array(
            'target' => '_blank',
          ),
        )),
      )),
      '#default_value' => $this->options['styled_google_map_view_default_pin'],
    );
    $form['styled_google_map_view_width'] = array(
      '#type' => 'textfield',
      '#title' => t('Width'),
      '#size' => '30',
      '#description' => t('This field determines how width the styled Google map'),
      '#default_value' => $this->options['styled_google_map_view_width'],
    );
    $form['styled_google_map_view_style'] = array(
      '#type' => 'textarea',
      '#title' => t('Style'),
      '#description' => t('The style of the map'),
      '#default_value' => $this->options['styled_google_map_view_style'],
    );
    $form['styled_google_map_view_cluster_pin'] = array(
      '#type' => 'textfield',
      '#title' => t('Cluster pin image'),
      '#description' => t('URL to the cluster image. You can use a !wrapper for the url. Leave empty for no clustering.', array(
        '!wrapper' => l(t('Stream wrapper'), 'https://drupal.org/project/system_stream_wrapper', array(
          'attributes' => array(
            'target' => '_blank',
          ),
        )),
      )),
      '#default_value' => $this->options['styled_google_map_view_cluster_pin'],
    );
    $form['styled_google_map_view_active_pin'] = array(
      '#type' => 'textfield',
      '#title' => t('Active pin image'),
      '#description' => t('URL to the active pin image. You can use a !wrapper for the url. Leave empty for using the default Google pin.', array(
        '!wrapper' => l(t('Stream wrapper'), 'https://drupal.org/project/system_stream_wrapper', array(
          'attributes' => array(
            'target' => '_blank',
          ),
        )),
      )),
      '#default_value' => $this->options['styled_google_map_view_active_pin'],
    );
    $form['styled_google_map_view_maptype'] = array(
      '#type' => 'select',
      '#options' => array(
        'ROADMAP' => t('ROADMAP'),
        'SATELLITE' => t('SATELLITE'),
        'HYBRID' => t('HYBRID'),
        'TERRAIN' => t('TERRAIN'),
      ),
      '#title' => t('Map type'),
      '#default_value' => $this->options['styled_google_map_view_maptype'],
      '#required' => TRUE,
    );
    $form['styled_google_map_view_zoom_default'] = array(
      '#type' => 'select',
      '#options' => range(1, 23),
      '#title' => t('Default zoom level'),
      '#default_value' => $this->options['styled_google_map_view_zoom_default'],
      '#description' => t('Should be between the Min and Max zoom level.
        This will generally not working as fitbounds will try to fit all pins on the map.'),
      '#required' => TRUE,
    );
    $form['styled_google_map_view_zoom_max'] = array(
      '#type' => 'select',
      '#options' => range(1, 23),
      '#title' => t('Max zoom level'),
      '#default_value' => $this->options['styled_google_map_view_zoom_max'],
      '#description' => t('Should be greater then the Min zoom level.'),
      '#required' => TRUE,
    );
    $form['styled_google_map_view_zoom_min'] = array(
      '#type' => 'select',
      '#options' => range(1, 23),
      '#title' => t('Min zoom level'),
      '#default_value' => $this->options['styled_google_map_view_zoom_min'],
      '#description' => t('Should be smaller then the Max zoom level.'),
      '#required' => TRUE,
    );
    $form['styled_google_map_view_maptypecontrol'] = array(
      '#type' => 'checkbox',
      '#title' => t('Enable Map Type control'),
      '#default_value' => $this->options['styled_google_map_view_maptypecontrol'],
    );
    $form['styled_google_map_view_scalecontrol'] = array(
      '#type' => 'checkbox',
      '#title' => t('Enable scale control'),
      '#default_value' => $this->options['styled_google_map_view_scalecontrol'],
    );
    $form['styled_google_map_view_rotatecontrol'] = array(
      '#type' => 'checkbox',
      '#title' => t('Enable rotate control'),
      '#default_value' => $this->options['styled_google_map_view_rotatecontrol'],
    );
    $form['styled_google_map_view_draggable'] = array(
      '#type' => 'checkbox',
      '#title' => t('Enable dragging'),
      '#default_value' => $this->options['styled_google_map_view_draggable'],
    );
    $form['styled_google_map_view_mobile_draggable'] = array(
      '#type' => 'checkbox',
      '#title' => t('Enable mobile dragging'),
      '#description' => t('Sometimes when the map covers big part of touch device screen draggable feature can cause inability to scroll the page'),
      '#default_value' => $this->options['styled_google_map_view_mobile_draggable'],
    );
    $form['styled_google_map_view_streetviewcontrol'] = array(
      '#type' => 'checkbox',
      '#title' => t('Enable street view control'),
      '#default_value' => $this->options['styled_google_map_view_streetviewcontrol'],
    );
    $form['styled_google_map_view_zoomcontrol'] = array(
      '#type' => 'checkbox',
      '#title' => t('Enable zoom control'),
      '#default_value' => $this->options['styled_google_map_view_zoomcontrol'],
    );
    $form['styled_google_map_view_scrollwheel'] = array(
      '#type' => 'checkbox',
      '#title' => t('Enable scrollwheel'),
      '#default_value' => $this->options['styled_google_map_view_scrollwheel'],
    );
    $form['map_center'] = array(
      '#type' => 'fieldset',
      '#title' => t('Centering map'),
      '#description' => t('Specify the longitude and latitude coordinates to center the map'),
      '#collapsible' => TRUE,
      '#collapsed' => TRUE,
    );
    $form['map_center']['styled_google_map_view_center_coordinates_lat'] = array(
      '#title' => t('Latitude'),
      '#type' => 'textfield',
      '#default_value' => $this->options['map_center']['styled_google_map_view_center_coordinates_lat'],
    );
    $form['map_center']['styled_google_map_view_center_coordinates_lon'] = array(
      '#title' => t('longitude'),
      '#type' => 'textfield',
      '#default_value' => $this->options['map_center']['styled_google_map_view_center_coordinates_lon'],
    );
    $form['popup'] = array(
      '#type' => 'fieldset',
      '#title' => t('Popup Styling'),
      '#description' => t('All settings for the popup exposed by the library. If you want more flexibility in your the styling of the popup. You can use the CSS defined classes'),
      '#collapsed' => TRUE,
      '#collapsible' => TRUE,
    );
    $form['popup']['styled_google_map_view_shadow_style'] = array(
      '#type' => 'select',
      '#title' => t('Shadow style'),
      '#options' => array(
        0,
        1,
        2,
      ),
      '#description' => t('1: shadow behind, 2: shadow below, 0: no shadow'),
      '#default_value' => $this->options['popup']['styled_google_map_view_shadow_style'] ? $this->options['popup']['styled_google_map_view_shadow_style'] : $this->options['styled_google_map_view_shadow_style'],
    );
    $form['popup']['styled_google_map_view_padding'] = array(
      '#type' => 'textfield',
      '#title' => t('Padding'),
      '#field_suffix' => 'px',
      '#default_value' => $this->options['popup']['styled_google_map_view_padding'] ? $this->options['popup']['styled_google_map_view_padding'] : $this->options['styled_google_map_view_padding'],
    );
    $form['popup']['styled_google_map_view_border_radius'] = array(
      '#type' => 'textfield',
      '#title' => t('Border radius'),
      '#field_suffix' => 'px',
      '#default_value' => $this->options['popup']['styled_google_map_view_border_radius'] ? $this->options['popup']['styled_google_map_view_border_radius'] : $this->options['styled_google_map_view_border_radius'],
    );
    $form['popup']['styled_google_map_view_border_width'] = array(
      '#type' => 'textfield',
      '#title' => t('Border width'),
      '#field_suffix' => 'px',
      '#default_value' => $this->options['popup']['styled_google_map_view_border_width'] ? $this->options['popup']['styled_google_map_view_border_width'] : $this->options['styled_google_map_view_border_width'],
    );
    $form['popup']['styled_google_map_view_border_color'] = array(
      '#type' => 'textfield',
      '#title' => t('Border color'),
      '#field_suffix' => '#hex',
      '#default_value' => $this->options['popup']['styled_google_map_view_border_color'] ? $this->options['popup']['styled_google_map_view_border_color'] : $this->options['styled_google_map_view_border_color'],
    );
    $form['popup']['styled_google_map_view_background_color'] = array(
      '#type' => 'textfield',
      '#title' => t('Background color'),
      '#field_suffix' => '#hex',
      '#default_value' => $this->options['popup']['styled_google_map_view_background_color'] ? $this->options['popup']['styled_google_map_view_background_color'] : $this->options['styled_google_map_view_background_color'],
    );
    $form['popup']['styled_google_map_view_min_width'] = array(
      '#type' => 'textfield',
      '#title' => t('Min width'),
      '#field_suffix' => 'px (or auto)',
      '#default_value' => $this->options['popup']['styled_google_map_view_min_width'] ? $this->options['popup']['styled_google_map_view_min_width'] : $this->options['styled_google_map_view_min_width'],
    );
    $form['popup']['styled_google_map_view_max_width'] = array(
      '#type' => 'textfield',
      '#title' => t('Max width'),
      '#field_suffix' => 'px (or auto)',
      '#default_value' => $this->options['popup']['styled_google_map_view_max_width'] ? $this->options['popup']['styled_google_map_view_max_width'] : $this->options['styled_google_map_view_max_width'],
    );
    $form['popup']['styled_google_map_view_min_height'] = array(
      '#type' => 'textfield',
      '#title' => t('Min height'),
      '#field_suffix' => 'px (or auto)',
      '#default_value' => $this->options['popup']['styled_google_map_view_min_height'] ? $this->options['popup']['styled_google_map_view_min_height'] : $this->options['styled_google_map_view_min_height'],
    );
    $form['popup']['styled_google_map_view_max_height'] = array(
      '#type' => 'textfield',
      '#title' => t('Max height'),
      '#field_suffix' => 'px (or auto)',
      '#default_value' => $this->options['popup']['styled_google_map_view_max_height'] ? $this->options['popup']['styled_google_map_view_max_height'] : $this->options['styled_google_map_view_max_height'],
    );
    $form['popup']['styled_google_map_view_arrow_style'] = array(
      '#type' => 'select',
      '#title' => t('Arrow style'),
      '#options' => array(
        0,
        1,
        2,
      ),
      '#description' => t('1: left side visible, 2: right side visible, 0: both sides visible'),
      '#default_value' => $this->options['popup']['styled_google_map_view_arrow_style'] ? $this->options['popup']['styled_google_map_view_arrow_style'] : $this->options['styled_google_map_view_arrow_style'],
    );
    $form['popup']['styled_google_map_view_arrow_size'] = array(
      '#type' => 'textfield',
      '#title' => t('Arrow size'),
      '#field_suffix' => 'px',
      '#default_value' => $this->options['popup']['styled_google_map_view_arrow_size'] ? $this->options['popup']['styled_google_map_view_arrow_size'] : $this->options['styled_google_map_view_arrow_size'],
    );
    $form['popup']['styled_google_map_view_arrow_position'] = array(
      '#type' => 'textfield',
      '#title' => t('Arrow position'),
      '#field_suffix' => 'px',
      '#default_value' => $this->options['popup']['styled_google_map_view_arrow_position'] ? $this->options['popup']['styled_google_map_view_arrow_position'] : $this->options['styled_google_map_view_arrow_position'],
    );
    $form['popup']['styled_google_map_view_second_click'] = array(
      '#title' => t('Close popup on second mouse click'),
      '#type' => 'select',
      '#options' => array(
        '1' => t('Yes'),
        '0' => t('No'),
      ),
      '#default_value' => $this->options['popup']['styled_google_map_view_second_click'] ? $this->options['popup']['styled_google_map_view_second_click'] : $this->options['styled_google_map_view_second_click'],
    );
    $form['popup']['styled_google_map_view_disable_auto_pan'] = array(
      '#type' => 'select',
      '#title' => t('Disable Auto pan'),
      '#options' => array(
        TRUE => t('Yes'),
        FALSE => t('No'),
      ),
      '#description' => t('Automatically center the pin on click'),
      '#default_value' => $this->options['popup']['styled_google_map_view_disable_auto_pan'] ? $this->options['popup']['styled_google_map_view_disable_auto_pan'] : $this->options['styled_google_map_view_disable_auto_pan'],
    );
    $form['popup']['styled_google_map_view_hide_close_button'] = array(
      '#type' => 'select',
      '#title' => t('Hide close button'),
      '#options' => array(
        TRUE => t('Yes'),
        FALSE => t('No'),
      ),
      '#description' => t('Hide the popup close button'),
      '#default_value' => $this->options['popup']['styled_google_map_view_hide_close_button'] ? $this->options['popup']['styled_google_map_view_hide_close_button'] : $this->options['styled_google_map_view_hide_close_button'],
    );
    $form['popup']['styled_google_map_view_disable_animation'] = array(
      '#type' => 'select',
      '#title' => t('Disable animation'),
      '#options' => array(
        TRUE => t('Yes'),
        FALSE => t('No'),
      ),
      '#description' => t('Disables the popup animation'),
      '#default_value' => $this->options['popup']['styled_google_map_view_disable_animation'] ? $this->options['popup']['styled_google_map_view_disable_animation'] : $this->options['styled_google_map_view_disable_animation'],
    );
    $form['popup_classes'] = array(
      '#type' => 'fieldset',
      '#title' => t('Popup classes'),
      '#collapsed' => TRUE,
      '#collapsible' => TRUE,
      '#description' => t('CSS classes for easy popup styling'),
    );
    $form['popup_classes']['styled_google_map_view_content_container_class'] = array(
      '#type' => 'textfield',
      '#title' => t('Wrapper class'),
      '#default_value' => $this->options['popup_classes']['styled_google_map_view_content_container_class'] ? $this->options['popup_classes']['styled_google_map_view_content_container_class'] : $this->options['styled_google_map_view_content_container_class'],
    );
    $form['popup_classes']['styled_google_map_view_background_class'] = array(
      '#type' => 'textfield',
      '#title' => t('Background class'),
      '#default_value' => $this->options['popup_classes']['styled_google_map_view_background_class'] ? $this->options['popup_classes']['styled_google_map_view_background_class'] : $this->options['styled_google_map_view_background_class'],
    );
    $form['popup_classes']['styled_google_map_view_arrow_class'] = array(
      '#type' => 'textfield',
      '#title' => t('Arrow class'),
      '#default_value' => $this->options['popup_classes']['styled_google_map_view_arrow_class'] ? $this->options['popup_classes']['styled_google_map_view_arrow_class'] : $this->options['styled_google_map_view_arrow_class'],
    );
    $form['popup_classes']['styled_google_map_view_arrow_outer_class'] = array(
      '#type' => 'textfield',
      '#title' => t('Arrow outer class'),
      '#default_value' => $this->options['popup_classes']['styled_google_map_view_arrow_outer_class'] ? $this->options['popup_classes']['styled_google_map_view_arrow_outer_class'] : $this->options['styled_google_map_view_arrow_outer_class'],
    );
    $form['popup_classes']['styled_google_map_view_arrow_inner_class'] = array(
      '#type' => 'textfield',
      '#title' => t('Arrow inner class'),
      '#default_value' => $this->options['popup_classes']['styled_google_map_view_arrow_inner_class'] ? $this->options['popup_classes']['styled_google_map_view_arrow_inner_class'] : $this->options['styled_google_map_view_arrow_inner_class'],
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
styled_google_map_style_plugin::options_form public function Modifies the options form inherited by this plugin. Overrides views_plugin_style::options_form
styled_google_map_style_plugin::option_definition public function Modifies the default options inherited by this plugin. Overrides views_plugin_style::option_definition
views_object::$definition public property Handler's definition.
views_object::$options public property Except for displays, options for the object will be held here. 1
views_object::altered_option_definition function Collect this handler's option definition and alter them, ready for use.
views_object::construct public function Views handlers use a special construct function. 4
views_object::export_option public function 1
views_object::export_options public function
views_object::export_option_always public function Always exports the option, regardless of the default value.
views_object::options Deprecated public function Set default options on this object. 1
views_object::set_default_options public function Set default options.
views_object::set_definition public function Let the handler know what its full definition is.
views_object::unpack_options public function Unpack options over our existing defaults, drilling down into arrays so that defaults don't get totally blown away.
views_object::unpack_translatable public function Unpack a single option definition.
views_object::unpack_translatables public function Unpacks each handler to store translatable texts.
views_object::_set_option_defaults public function
views_plugin::$display public property The current used views display.
views_plugin::$plugin_name public property The plugin name of this plugin, for example table or full.
views_plugin::$plugin_type public property The plugin type of this plugin, for example style or query.
views_plugin::$view public property The top object of a view. Overrides views_object::$view 1
views_plugin::additional_theme_functions public function Provide a list of additional theme functions for the theme info page.
views_plugin::options_submit public function Handle any special handling on the validate form. 9
views_plugin::plugin_title public function Return the human readable name of the display.
views_plugin::summary_title public function Returns the summary of the settings in the display. 8
views_plugin::theme_functions public function Provide a full list of possible theme templates used by this style.
views_plugin_style::$row_plugin public property The row plugin, if it's initialized and the style itself supports it.
views_plugin_style::$row_tokens public property Store all available tokens row rows.
views_plugin_style::build_sort public function Called by the view builder to see if this style handler wants to interfere with the sorts. If so it should build; if it returns any non-TRUE value, normal sorting will NOT be added to the query. 1
views_plugin_style::build_sort_post public function Called by the view builder to let the style build a second set of sorts that will come after any other sorts in the view. 1
views_plugin_style::destroy public function Destructor. Overrides views_object::destroy
views_plugin_style::even_empty public function Should the output of the style plugin be rendered even if it's empty. 1
views_plugin_style::get_field public function Get a rendered field.
views_plugin_style::get_field_value public function Get the raw field value.
views_plugin_style::get_row_class public function Return the token replaced row class for the specified row.
views_plugin_style::init public function Initialize a style plugin.
views_plugin_style::options_validate public function Validate the options form. Overrides views_plugin::options_validate
views_plugin_style::pre_render public function Allow the style to do stuff before each row is rendered.
views_plugin_style::query public function Add anything to the query that we might need to. Overrides views_plugin::query 2
views_plugin_style::render public function Render the display in this style. 5
views_plugin_style::render_fields public function Render all of the fields for a given style and store them on the object.
views_plugin_style::render_grouping public function Group records as needed for rendering.
views_plugin_style::render_grouping_sets public function Render the grouping sets.
views_plugin_style::tokenize_value public function Take a value and apply token replacement logic to it.
views_plugin_style::uses_fields public function Return TRUE if this style also uses fields.
views_plugin_style::uses_row_class public function Return TRUE if this style also uses a row plugin.
views_plugin_style::uses_row_plugin public function Return TRUE if this style also uses a row plugin.
views_plugin_style::uses_tokens public function Return TRUE if this style uses tokens.
views_plugin_style::validate public function Validate that the plugin is correct and can be saved. Overrides views_plugin::validate