You are here

public function IpGeoLocPluginStyleLeaflet::pluginStyleLeafletRefreshClusterFieldsetJs in IP Geolocation Views & Maps 8

Ajax callback in response to new rows or the diff. drop-down being changed.

At this point the $form has already been rebuilt. All we have to do here is tell AJAX what part of the browser form needs to be updated.

File

src/Plugin/views/style/IpGeoLocPluginStyleLeaflet.php, line 1321

Class

IpGeoLocPluginStyleLeaflet
Views Style plugin extension for Leaflet (if enabled).

Namespace

Drupal\ip_geoloc\Plugin\views\style

Code

public function pluginStyleLeafletRefreshClusterFieldsetJs($form, &$form_state) {

  // Return the updated fieldset, so that ajax.inc can issue commands to the
  // browser to update only the targeted sections of the page.
  return $form['options']['style_options']['cluster_differentiator'];
}