How can i center this Google map on user local position?

266 views Asked by At

I try to manage some changes at the code of Joomla Module file that show a google map to get it working center automatically on user location:

i found on the google documentation this script write in Google maps api V3 for geocode that works great standing alone and seems to be very accurate. See it on this page: http://www.urbanclaim.com/new.php

i already have this problem: (you can see it using the link above)

after a user click on for sharing his location, never changes in the module's map. i try to put an alert in the code ang give me a null value for the local coordinates.. someone of you can help me with a debug in firebug o give me an advice on this?

i SOLVED it..this site is really useless.

1

There are 1 answers

9
christiangeek On

In your javascript you are looking for a element with the ID of location but I do not see the element in the DOM nor do I see it being added by your JavaScript, once I added a element with that ID to the DOM via FireBug, your code worked for me.