On May 11, 4:53 pm, thomfriedel <[email protected]> wrote:
> I just posted a similar questoin to KML group.  I want to have the map
> load at the location of my KML file without having to call setCenter
> first.  There are functions to read lat/long/bounds from the kml, but
> I cant seem to calll them before setCenter.   That is 
> here:http://groups.google.com/group/kml-support-getting-started/browse_thr...
>
> Can you explain the grey concept better?  I am trying to avoid the
> second redraw when I center around the KML, so maybe if I loaded a
> empty map with setCenter.  After reading this,  I changed my program
> to load a spot in the ocean, and that minimized the bad-looking redraw
> but I am still not happy with 
> it.http://www.birdphotos.com/photos/v?q=gallery&g2_view=xebug.ShowTree&g...

Did you try Andrew's suggested location?
Quoted from that thread that I referenced:
> A suitable centre might be (88,0) because the map will be grey.

  -- Larry

>
> tom
>
> On May 11, 4:15 pm, "[email protected]" <[email protected]>
> wrote:
>
>
>
> > On May 11, 1:00 pm, goh sp <[email protected]> wrote:
>
> > >www.gapsedu.com/contact.phpitwillgo 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/1e62...
>
> >   -- 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-Hidequoted
> > >  text -
>
> > > - Show quoted text -- 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