You are here

function openlayers_map_form_settings_submit in Openlayers 7.3

Map settings config form submit handler.

File

modules/openlayers_ui/src/Plugin/export_ui/OpenlayersMaps.inc, line 140
CTools Export UI plugin definition for maps.

Code

function openlayers_map_form_settings_submit($form, &$form_state) {
  $map = \Drupal\openlayers\Openlayers::load('map', $form_state['item']);
  if (!$map
    ->getFactoryService()) {
    $map
      ->setFactoryService('openlayers.Map:OLMap');
  }
  $map
    ->optionsFormSubmit($form, $form_state);
}