View Full Version : map center problem
jonathan.meilleur385477
08-23-2009, 09:53 AM
Hi, I have a problem with the links to change which address your map centers on.
When I click on it, the info bubble and the target is offset (out of the frame) in a corner.
What can I do for it?
Thanks
Jason Byrnes
08-24-2009, 01:47 PM
Please post a URL where I could see the problem to investigate the cause.
jonathan.meilleur385477
08-24-2009, 05:49 PM
Here it is :
http://www.ulextra.com/fr_contact.php
Thank you.
Dani Chankhour
08-25-2009, 08:29 PM
Hi,
In order to fix this issue, you will need to change a few thing:
1. in the wagmp_map_1.js file, please change line 26 to read:
return WAMapPoint(this.markers[x],this.addresses[x],this.icons[x], this.points[x], this.obj);
2. then replace line 13 with this line of code:
function WAMapPoint(theMarker, theAddress, theIcon, point, map) {
3. and finally add this line of code below line 17:
map.setCenter(point, 13);
This should center the map every time you click on the link.
Let me know if you have any other questions.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.