Ability to enter longitude/latitude and Google Map link
ekrispin - January 15, 2008 - 22:37
| Project: | cck_map |
| Version: | 5.x-3.3 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
Great module!
It would be great if in edit mode, in addition to markers, it would be possible to enter, like when working directly in the Google Map website, longitude/latitude values and to paste the Google Map embed link produced there.

#1
It would be nice to have this feature. I need to migrate coordinates from wiki to Drupal and it would be much easier to do it by editing coordinates by hand.
#2
*bump*
#3
This feature would be very useful for me as well. Great module, though! Simple to install, easy to use.
#4
Showing the lon/lat-fields can be done by changing the 'hidden' fields to actual controls. I do not know yet how to provide a patch, I hope this excerpt works.
Index: cck_map.module===================================================================
@@ -591,22 +608,25 @@
$tld = $_SERVER['SERVER_NAME'];
$js = "var {$js_prefix};\$(document).ready(function() { {$js_prefix}map = new gmapAdminController('{$prefix}',". $m .", ". $t .", ". $d .", ". $i .", '". $tld ."'); });";
drupal_add_js($js, 'inline');
-
- $form[$field['field_name']]['maplon'] = array('#type' => 'hidden',
- '#default_value' => $items['maplon'] ? $items['maplon'] : '0');
-
+ $form[$field['field_name']]['maplon'] = array(
+ '#type' => 'textfield',
+ '#title' => 'Longitude',
+ '#default_value' => $items['maplon'] ? $items['maplon'] : '0',
+ );
$form[$field['field_name']]['maplat'] = array(
- '#type' => 'hidden',
+ '#type' => 'textfield',
+ '#title' => 'Latitude',