Geographical Coordinates

Component ID

1834768

Component name

Geographical Coordinates

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Form API element type for entering geographical coordinates using a draggable marker on an embedded map.

Example form item definition:

<?php
$form['geo_coordinates_test'] = array(
  '#type' => 'geo_coordinates',
  '#title' => t('Nice coordinates'),
  '#google_api_key' => '{Google API key goes here},
  '#map_center' => array(
    'latitude' => 47.5011,
    'longitude' => 19.0415,
  ),
  '#map_zoom' => 12,
);
?>