public static function GeofieldGoogleMapViewStyle::mapThemingOptionsUpdate in Geofield Map 8.2
Ajax callback triggered Map Theming Option Selection.
Parameters
array $form: The build form.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
Return value
\Drupal\Core\Ajax\AjaxResponse Ajax response with updated form element.
File
- src/
Plugin/ views/ style/ GeofieldGoogleMapViewStyle.php, line 790
Class
- GeofieldGoogleMapViewStyle
- Style plugin to render a View output as a Leaflet map.
Namespace
Drupal\geofield_map\Plugin\views\styleCode
public static function mapThemingOptionsUpdate(array $form, FormStateInterface $form_state) {
$response = new AjaxResponse();
$response
->addCommand(new ReplaceCommand('#map-marker-and-infowindow-wrapper', $form['options']['style_options']['map_marker_and_infowindow']));
return $response;
}