You are here

function hook_geofield_map_googlemap_view_style_alter in Geofield Map 8.2

Alter the Geofield Map Google Maps 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\geofield_map\Plugin\views\style\GeofieldGoogleMapViewStyle $view_style: The Geofield Google Map View Style.

1 invocation of hook_geofield_map_googlemap_view_style_alter()
GeofieldGoogleMapViewStyle::render in src/Plugin/views/style/GeofieldGoogleMapViewStyle.php
Renders the View.

File

./geofield_map.api.php, line 58
Hooks provided by the Geofield Map module.

Code

function hook_geofield_map_googlemap_view_style_alter(array &$map_settings, GeofieldGoogleMapViewStyle &$view_style) {

  // Make custom alterations to $map_settings, eventually using the $view_style
  // context.
}