Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Experimental project
This is a sandbox project, which contains experimental code for developer use only.
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,
);
?>
Project information
- Created by balintk on , updated