You are here

public function Baidu::getSettings in Geolocation Field 8.3

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_baidu/src/Plugin/geolocation/MapProvider/Baidu.php, line 43

Class

Baidu
Provides Baidu Maps API.

Namespace

Drupal\geolocation_baidu\Plugin\geolocation\MapProvider

Code

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