function hook_leaflet_map_view_style_alter in Leaflet 2.1.x
Same name and namespace in other branches
- 8 leaflet.api.php \hook_leaflet_map_view_style_alter()
- 2.0.x modules/leaflet_views/leaflet_views.api.php \hook_leaflet_map_view_style_alter()
Alter the Leaflet Map View Style settings.
Allow other modules to add/alter the map js settings.
Parameters
array $map_settings: The array of geofield map element settings.
\Drupal\leaflet_views\Plugin\views\style\LeafletMap $view_style: The Leaflet Map View Style.
1 invocation of hook_leaflet_map_view_style_alter()
- LeafletMap::render in modules/
leaflet_views/ src/ Plugin/ views/ style/ LeafletMap.php - Renders the View.
File
- modules/
leaflet_views/ leaflet_views.api.php, line 45 - Hook documentation for leaflet_views module.
Code
function hook_leaflet_map_view_style_alter(array &$map_settings, LeafletMap &$view_style) {
// Make custom alterations to $map_settings, eventually using the $view_style
// context.
}