Hi everyone,

I'm fairly new to Google Maps API 3 and have created a map that uses a
large amount of Polylines (the KMZ files is 2mb). I'm using the
following code to create the map and pull in the KMZ file.

//start code
var geocoder;
        var map;
        function initialize() {
                geocoder = new google.maps.Geocoder();
                var latlng = new google.maps.LatLng(990.000, -115.138);
                var myOptions = {
                zoom: 7,
                center: latlng,
                mapTypeControl: false,
                mapTypeId: google.maps.MapTypeId.ROADMAP
                }
                map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);

                var ctaLayer = new google.maps.KmlLayer('http://www.domain.com/
file.kmz',{suppressInfoWindows: true, preserveViewport:true});
            ctaLayer.setMap(map);

                google.maps.event.addListener(map, 'zoom_changed', function() {
                        if(map.getZoom() > 13) {
                                map.setZoom(13);
                        }
                });
        }
//end code

The overlay is very slow loading and sometimes it doesn't appear to
load at all. Is there anything I can do to get this working faster or
more efficient?

Thanks,
SC

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