You are here

function hook_leaflet_map_view_style_alter in Leaflet 8

Same name and namespace in other branches
  1. 2.1.x modules/leaflet_views/leaflet_views.api.php \hook_leaflet_map_view_style_alter()
  2. 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

./leaflet.api.php, line 145
API documentation for Administration menu.

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.
}