On May 11, 1:00 pm, goh sp <[email protected]> wrote:
> www.gapsedu.com/contact.phpit will go to first pages then follow the second 
> pages... But I want it to go direct to the second pages...

Either don't use the geocoder for the location (use the coordinates
that the geocoder returns, rather than the geocoder), initialize the
map when the geocoder returns its results (call setCenter for the
first time), or initialize it to somewhere that is "grey":
http://groups.google.com/group/Google-Maps-API/browse_frm/thread/1e62befc1bb40b02/f3ae21053df40639

  -- Larry

>
> <?php $map_address="australia"; ?>  // I need to have this in order to input
>
>
>
>
>
> > Date: Mon, 11 May 2009 12:51:09 -0700
> > Subject: Re: Go direct to the second map using geocoder instead of viewing 
> > the first map
> > From: [email protected]
> > To: [email protected]
>
> > Can you please provide a link...
>
> > On May 11, 1:45 pm, "[email protected]" <[email protected]>
> > wrote:
> > > <script src="http://maps.google.com/maps?
> > > file=api&v=2.x&key=your key" type="text/javascript"></script>
> > >     <script type="text/javascript">
>
> > >     var map = null;
> > >     var geocoder = null;
> > >     var map = null;
> > >     var geocoder = null;
>
> > >     function initialize() {
> > >       if (GBrowserIsCompatible()) {
> > >         map = new GMap2(document.getElementById("map_canvas"));
> > >         map.setCenter(new GLatLng(1.3714, 103.8861), 13);
> > >                 map.addControl(new GSmallMapControl());
> > >         geocoder = new GClientGeocoder();
> > >       }
> > >     }
>
> > >     function showAddress(address) {
> > >       if (geocoder) {
> > >         geocoder.getLatLng(
> > >           address,
> > >           function(point) {
> > >             if (!point) {
> > >               alert(address + " not found");
> > >             } else {
> > >               map.setCenter(point, 10);
> > >               var marker = new GMarker(point);
> > >               map.addOverlay(marker);
> > >             }
> > >           }
> > >         );
> > >       }
> > >     }
>
> > > </script>
>
> > > <?php $map_address="australia"; ?>  // I need to have this in order to
> > > activate php
> > > <BODY onload="initialize(); showAddress('<?php echo $map_address; ?
>
> > > >');" onunload="GUnload();">
>
> > > I need it to go directly to australia map using the geocoder instead
> > > of viewing the first map by longitude and latitude.. Is there a way to
> > > do it?
>
> _________________________________________________________________
> See all the ways you can stay connected to friends and 
> familyhttp://www.microsoft.com/windows/windowslive/default.aspx- Hide quoted 
> text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to