I've set up a completely fresh install of 4.7.2 and gmap 1.40, location module 1.62.2.1 and the box-grey theme.

I'm finding that no matter I put in Administer > Settings > gmap > Default Map Settings > Default Center, when I build a macro, the center is always set to about 0,0

For example, if I try to set it as the UK at 55.52863052257191, -4.54833984375 'Build a Macro' shows a default center somewhere off the west coast of Africa.

Stuart

Comments

StuartDH’s picture

I've had a few more goes at this and it's changing things like gmap settings of 60,60 to 0.17578097424708533, 0.17578125

Is it possibly something mixed up between the gmat_longlat and gmap-latlong ?

StuartDH’s picture

Is anyone else getting the same problem>

I notice that when I view the 'build a macro' page source it's showing the lat and long values that I put in Settings > gmap

<div class="form-item">

 <label for="gmap-latlong">The Latitude and Longitude of the centre of the map: </label>
 <input type="text" maxlength="128" name="edit[latlong]" id="gmap-latlong"  size="50" value="54.92714186454645, -4.74609375" onchange="set_gmap_latlong(this.value);" class="form-text" />
</div>

but the actual google map still has a default centre somewhere near 0,0.

StuartDH’s picture

I've just discovered something else about this issue:

If I put in the default center co-ords from webgeer's demo macro page - http://www.webgeer.com/map/macro - into my gmap settings -

49.17452151806784, -123.0029296875

It works and I get a default centre near Richmond, Canada

but if I try something like the UK's co-ords

55.00282580979323, -3.9990234375

It doesn't work, and I end up off the west coast of Africa

robclay’s picture

I just submitted a similar issue - try making your map smaller - see if that solves the mysterious numbers issue...

webgeer’s picture

Status: Active » Closed (fixed)

I have been unable to recreate this problem. I will assume that it has been fixed, or you figured out what the error was. If you are still having a problem please reopen the issue.