Alkshendra , As i told you earlier, i am a dot net developer and i am a layman in PHP. But as far as the url sujjests, you are sending it through the querystring which you read in the location Address or City or Zip code..
For this i can make some sort of explaination for you regarding what to do on a functional prospective. this is as given below. Step ONE: While the User enters the City / ZipCode/Address.. and clicks the submit buitton, in the Click event get the User Entered Value into a php variable of type String and Pass it to the method of get Geolocation.. You can get the reference of how to pass in the address values to this method at Google Maps Javascript API V2 Tutorial by googling online. The OUTPUT of this method will be a set of Lat,Long Values for the entered Location. Step Two: Take Two Variables of type Double and passin the Values of Lat and Long to them. for Better Understanding, Name the Variables as dUserLat and dUserLong. Now add the Values to the Query String of the Next Page. i.e., Let you Next Navigation page be "http://abc/def/fname.php" Now While redirecting, Send it as "http://abc/def/fname.php?uLat=xxxx,uLong=yyyy" Where xxxx,yyyy are the Values of the dUserLat and duserLong. Step3: In the Page Load of the Next Page, you get the Values from the Query string With Names uLat and uLong. and pass them to the GMAP Marker location values. You can get the details of technical stuff by simple googling.. All the best... On Sat, Sep 3, 2011 at 1:53 PM, Alkshendra <[email protected]> wrote: > No, actually i don't want to track the user's location.. i want to > show the map based on the zip / city he enters in the first page. > > On Sep 2, 7:41 pm, xelawho <[email protected]> wrote: > > > why not just get the browser to detect the user's location? > > > > oops - wrong api, sorry... try this one: > http://www.xelawho.com/map/location.htm > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-maps-api?hl=en. > > -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
