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.
By ultimike on
Hello,
I have a site with both the gmap and gmap_location moduled installed. When I create a new node and want to set the location of that node, all is well - I can use the gmap to specify the location.
My question is when I'm editing an existing node - the gmap does not default to the present location of the node - it shows the default state of the map (just like I was adding a new node). Is it possible for the map to show the present location of the node?
Thanks in advance,
-mike
Comments
Same Problem
Yes i have the same Problem, the default setting is always showing europe although the user already set Australya... it just wont show the current setting, although it is saved.
What to do?
Best regards,
Ant
Possible solution
Hey why not try this:
Insert into gmap.module after " if (isset($fields['address'])) {" in 753
Problem is: It updates only after pressing the button, automatically starting the function "set_default" dauses error:"geocoder has no properties"
best regards,
Ant
This seems to fix the
This seems to fix the probrem.
add 2 lines
in gmap.module, within
function gmap_location_form_alter
,before
if ($lonform['#default_value']!=0 || $latform['#default_value']!=0) {
I checked this with v 1.45.2.2 (2006/10/27)