Rossko wrote:
> You could always write the 'target' page to use the lat/long if given,
> or if not use a postcode.
Thanks RossKo could you elaberate a bit on the above. This is the
onload= script used for the target page...
function load() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(lat,lng), zoom, maptype);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.getDragObject().setDraggableCursor("crosshair");
map.setMapType(G_HYBRID_MAP);
GEvent.addListener(map, 'click', mapClick);
geocoder = new GClientGeocoder();
// Make the link the first time when the page opens
makeLink();
makeLink2();
makeLink3();
// Make the link again whenever the map changes
GEvent.addListener(map, 'moveend', makeLink);
GEvent.addListener(map, 'moveend', makeLink2);
GEvent.addListener(map, 'moveend', makeLink3);
}
}
What changes would I need to do for it to accept postcodes and how
would it need to be in the URL?
Is this a clue? When I link into Google Maps using this URL it works
fine...
http://maps.google.co.uk/maps?f=q&hl=en&q=S42 5NH, UK
and it places the S42 5NH, UK into the searchBox within the target
page and goes to that location. How can I do similar with my target
page?
You help is much appreciated, thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---