protected function MarkerDefault::renderLeafletGroup in Leaflet 2.0.x
Same name and namespace in other branches
- 8 modules/leaflet_views/src/Plugin/views/style/MarkerDefault.php \Drupal\leaflet_views\Plugin\views\style\MarkerDefault::renderLeafletGroup()
- 2.1.x modules/leaflet_views/src/Plugin/views/style/MarkerDefault.php \Drupal\leaflet_views\Plugin\views\style\MarkerDefault::renderLeafletGroup()
Render a single group of leaflet markers.
Parameters
string $title: The group title.
string $level: The current group level.
array $features: The list of leaflet features / points.
Return value
array Definition of leaflet markers, compatible with \Drupal::service('leaflet.service')->leafletRenderMap().
1 call to MarkerDefault::renderLeafletGroup()
- MarkerDefault::renderGroupingSets in modules/
leaflet_views/ src/ Plugin/ views/ style/ MarkerDefault.php - Render the grouping sets.
1 method overrides MarkerDefault::renderLeafletGroup()
- MarkerLayerGroup::renderLeafletGroup in modules/
leaflet_views/ src/ Plugin/ views/ style/ MarkerLayerGroup.php - Render a single group of leaflet markers.
File
- modules/
leaflet_views/ src/ Plugin/ views/ style/ MarkerDefault.php, line 168
Class
- MarkerDefault
- Style plugin to render leaflet markers.
Namespace
Drupal\leaflet_views\Plugin\views\styleCode
protected function renderLeafletGroup($title, $level, array $features = []) {
return [
'group' => FALSE,
'features' => $features,
];
}