$elements['geolocation_map_input'] = [ '#type' => 'geolocation_google_map_input', '#title' => $this->t('Simple Location Input'), '#latitude' => 40.6700, '#longitude' => -73.9400, '#height' => 120, ];
$form['geolocation_map_input_complex'] = [ '#type' => 'geolocation_google_map_input', '#title' => $this->t('Complex Location Input'), '#height' => 320, '#controls' => TRUE, '#max_locations' => 2, '#locations' => [ [ 'latitude' => 6.8, 'longitude' => -1.616667, ], [ 'latitude' => 6.6, 'longitude' => -1.616667, ], ], ];