Saturday, September 3, 2011

[Google Maps API v2] Re: Need to show a map on my site that shows the User's location

The user will enter his City or zip
> code in the front page and it will be stored in a php variable then
> the next page will have the google maps embedded with the variable in
> the link..

this is more or less what Pavan is talking about, but you don't need
to use php, you can just add the zip code to the query string and in
the 2nd page run the geocoder in the initialize function, grab the
zipcode there and feed it in as the address variable.

... or - even simpler - put it all on one page and use the DOM
style.display methods "inline" and "hidden" for your input box and map
divs (respectively) and swap them over when you call your geocoder
function... that way you don't even have to make a second page, it
just *looks* like a new page...

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate