Hello!
I' m trying to create a map where i have loaded 28 kml layers. A
maximum of 7 layers would be visible at any given time, and the user
would be able to load and unload any of the layers. The problem is
that, even when i'm only loading the 7 layers visible, i can't see all
of them. Sometimes it loads layer 1 and 2, sometimes 2 and 7,
sometimes 2,3 and 6, and some other times it will load all of them. I
really don't know what is wrong here. The code in which i load the
layers is:

  var map;

  function initialize() {
    var myLatlng = new google.maps.LatLng(37.620334, -0.98769818);
    var myOptions = {
      zoom: 15,
      center: myLatlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
    var kmlLayer = new google.maps.KmlLayer('http://
www.laboratorioscavendish.net/giscartagena/kmls/kmls/Niveles1.kml',
{ map: map });
    var kmlLayer2 = new google.maps.KmlLayer('http://
www.laboratorioscavendish.net/giscartagena/kmls/kmls/Niveles2.kml',
{ map: map });
    var kmlLayer3 = new google.maps.KmlLayer('http://
www.laboratorioscavendish.net/giscartagena/kmls/kmls/Niveles3.kml',
{ map: map });
    var kmlLayer4 = new google.maps.KmlLayer('http://
www.laboratorioscavendish.net/giscartagena/kmls/kmls/Niveles4.kml',
{ map: map });
    var kmlLayer5 = new google.maps.KmlLayer('http://
www.laboratorioscavendish.net/giscartagena/kmls/kmls/Niveles5.kml',
{ map: map });
    var kmlLayer6 = new google.maps.KmlLayer('http://
www.laboratorioscavendish.net/giscartagena/kmls/kmls/Niveles6.kml',
{ map: map });
    var kmlLayer7 = new google.maps.KmlLayer('http://
www.laboratorioscavendish.net/giscartagena/kmls/kmls/Niveles7.kml',
{ map: map });
  }


Thank you for your help

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to