On Oct 27, 1:24 pm, Gazz1982 <[EMAIL PROTECTED]> wrote:
> code snippet:
>
> var geoXml;
>
>       function initialize() {
>         if (GBrowserIsCompatible()) {
>
>           su1 = new GGeoXml('http://62.72.32.113/bm-od/su_1.kml');
>           // Create and Center a Map
>           var map = new GMap2(document.getElementById('map_canvas'));
>           map.setCenter(new GLatLng(54, -5), 5);
>           map.addControl(new GLargeMapControl());
>           map.addControl(new GMapTypeControl());
>           //map.addOverlay(su1);
>
> how do I make it to display the kml layer su_1.kml at say a zoom of 8.
> Is it possible?

Yes.  See the documentation:
http://code.google.com/apis/maps/documentation/reference.html#GMap2.Events
in particular the zoomend event.  If the newLevel is 8 display the
overlay, if it isn't hide it...

Post a link to your map per the suggested posting guidelines if you
run into trouble.

  -- Larry
--~--~---------~--~----~------------~-------~--~----~
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