public function GoogleMaps::getSettings in Geolocation Field 8.3
Same name and namespace in other branches
- 8.2 modules/geolocation_google_maps/src/Plugin/geolocation/MapProvider/GoogleMaps.php \Drupal\geolocation_google_maps\Plugin\geolocation\MapProvider\GoogleMaps::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 GoogleMapsProviderBase::getSettings
1 call to GoogleMaps::getSettings()
- GoogleMaps::getSettingsForm in modules/
geolocation_google_maps/ src/ Plugin/ geolocation/ MapProvider/ GoogleMaps.php - Provide a generic map settings form array.
File
- modules/
geolocation_google_maps/ src/ Plugin/ geolocation/ MapProvider/ GoogleMaps.php, line 103
Class
- GoogleMaps
- Provides Google Maps.
Namespace
Drupal\geolocation_google_maps\Plugin\geolocation\MapProviderCode
public function getSettings(array $settings) {
$settings = parent::getSettings($settings);
$settings['minZoom'] = (int) $settings['minZoom'];
$settings['maxZoom'] = (int) $settings['maxZoom'];
return $settings;
}