On Jun 2, 11:50 am, Pedro Venancio <[email protected]> wrote: > > If someone can show me a way, what I need to do is to find a way that, > through a url, can open a window with the location in Google Maps > API. > Right now I do it through the > linkhttp://maps.google.pt/?q=40.776489+-8.05802&z=12&t=h > by changing the parameters I want. However, I wanted to do this, but > instead of opening the page of google maps, open a map map customized > by me through the API. I got this map but I don't know how to "send > requests" to it.
There are a couple of points to make: You can manipulate maps.google.pt with different parameters: see http://mapki.com/wiki/Google_Map_Parameters With an API map, it's Javascript within the page which manipulates the map. It accepts parameters and interprets what they mean. Because each page which uses the API is different, it would be possible to have a URL like mypage.htm?apples=45&pears=-119&pomegranate=12 instead of latitude longitude and zoom. Most people will use sensible names, but the point is that everything is controllable. See Mike's tutorial at http://econym.org.uk/gmap/linktothis.htm for one example. NB: Passing parameters is (as Mike says) NOT part of the API, and using the "?" querystring is standard Javascript which is better discussed in another forum. Once you have extracted values from the URL, getting the map to behave does belong here. -- You received this message because you are subscribed to the Google Groups "Google Maps API" 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.
