You are here

function hook_leaflet_views_feature_group_alter in Leaflet 2.0.x

Same name and namespace in other branches
  1. 8 modules/leaflet_views/leaflet_views.api.php \hook_leaflet_views_feature_group_alter()
  2. 2.1.x modules/leaflet_views/leaflet_views.api.php \hook_leaflet_views_feature_group_alter()

Adjust the array representing a leaflet feature group.

Parameters

array $group: The leaflet feature group. Available keys are:

  • group: Indicates whether the contained features should be rendered as a layer group. Set to FALSE to render contained features ungrouped.
  • features: List of features contained in this group.
  • label: The group label, e.g. used for the layer control widget.

\Drupal\leaflet_views\Plugin\views\style\MarkerDefault $stylePlugin: The style plugin used for rendering the feature group.

1 invocation of hook_leaflet_views_feature_group_alter()
MarkerDefault::renderGroupingSets in modules/leaflet_views/src/Plugin/views/style/MarkerDefault.php
Render the grouping sets.

File

modules/leaflet_views/leaflet_views.api.php, line 62
Hook documentation for leaflet_views module.

Code

function hook_leaflet_views_feature_group_alter(array &$group, MarkerDefault $stylePlugin) {
}