Center map by Textbox (geocode)

33 views
Skip to first unread message

Jaume Hernandez

unread,
Dec 20, 2011, 5:20:32 AM12/20/11
to google-map...@googlegroups.com
Hi there!!!!
I'm just going crazy with this. 
I wanted that if the user types an address, the map centers to that point without showing any marker.
The code is at:


I really appreciate any help!!
Thanks
Jaume

Marcelo

unread,
Dec 20, 2011, 8:20:06 AM12/20/11
to Google Maps JavaScript API v3
Your script crashes before the map even loads (my browser doesn't
support geolocation, and it never will)

---------------------------------------------------------------
Error: contentString is not defined
Source File: http://www.usedausa.com/map3.html
Line: 90
---------------------------------------------------------------

You're going to have to fix that first.

--
Marcelo - http://maps.forum.nu
--

On Dec 20, 3:20 am, Jaume Hernandez <jaume.hernandez.p...@gmail.com>
wrote:

Jaume Hernandez

unread,
Dec 20, 2011, 9:27:30 AM12/20/11
to google-map...@googlegroups.com
Marcelo,
I think I have fixed the error, but still does not work. www.usedausa.com/map3.html
Surprisingly, without the Geolocation feature the map centering textbox works nice
You can check at: www.usedausa.com/map.html

Any ideas???
Thank you 
Jaume

Marcelo

unread,
Dec 20, 2011, 9:32:17 AM12/20/11
to Google Maps JavaScript API v3
On Dec 20, 7:27 am, Jaume Hernandez <jaume.hernandez.p...@gmail.com>
wrote:

> I think I have fixed the error, but still does not work.www.usedausa.com/map3.html
> Surprisingly, without the Geolocation feature the map centering textbox
> works nice

Not surprising. Look at the error console in Firefox!
Your geolocation function is still crashing:
----------------------------------------
Error: AUSA is not defined
Source File: http://www.usedausa.com/map3.html
Line: 68
----------------------------------------

--
Marcelo - http://maps.forum.nu
--

> You can check at:www.usedausa.com/map.html

Reply all
Reply to author
Forward
0 new messages