You are here

public function Here::getSettings in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 modules/geolocation_here/src/Plugin/geolocation/MapProvider/Here.php \Drupal\geolocation_here\Plugin\geolocation\MapProvider\Here::getSettings()

Provide map provider specific settings ready to handover to JS.

Parameters

array $settings: Current general map settings. Might contain unrelated settings as well.

Return value

array An array only containing keys defined in this plugin.

Overrides MapProviderBase::getSettings

File

modules/geolocation_here/src/Plugin/geolocation/MapProvider/Here.php, line 36

Class

Here
Provides HERE Maps API.

Namespace

Drupal\geolocation_here\Plugin\geolocation\MapProvider

Code

public function getSettings(array $settings) {
  $settings = parent::getSettings($settings);
  $settings['zoom'] = (int) $settings['zoom'];
  return $settings;
}