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.

Comments

jmiszczak’s picture

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.

joshwah’s picture

*bump*

rideguide’s picture

This feature would be very useful for me as well. Great module, though! Simple to install, easy to use.

bascostbudde’s picture

Status: Active » Needs review

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',