I don't know if this will help anyone , but I tried v3 and was worried
that it would be too slow in IE, tried using the chrome frame, didn't
work right for my situation, and I finally found out that when I had
users hit the page initially, it would just do a simple load of the
map area with no markers like this

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
function load() {
      var map = new google.maps.Map(document.getElementById("map"), {
        center: new google.maps.LatLng(27.365549, -82.48659),
        zoom:11,
        mapTypeId: 'roadmap'
      });
 }

And then I had something like
this :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;

      var map = new google.maps.Map(document.getElementById("map"), {
        center: new google.maps.LatLng(lt, ln),
        zoom: 11,
        mapTypeId: 'roadmap'
      });
      var infoWindow = new google.maps.InfoWindow;




      downloadUrl(qstring, function(data) {

                        var xml = data.responseXML;

                        if(xml == null)
                        {       alert("no results, try again ");
                                return false;
                        }

                        var markers = 
xml.documentElement.getElementsByTagName("marker");
                                for (var i = 0; i < markers.length; i++)
                                {
                                        var mls = 
markers[i].getAttribute("mls");
                                        var address = 
markers[i].getAttribute("address");
                                        var text1 = 
markers[i].getAttribute("text1");
                                        var point = new
google.maps.LatLng(parseFloat(markers[i].getAttribute("lat")),
parseFloat(markers[i].getAttribute("lng")));

                                        var html = "" + mls + " " + address;
                                        var type = 
markers[i].getAttribute("type");
                                        var icon = customIcons[type] || {};

                                                var marker = new 
google.maps.Marker({
                                                        map: map,
                                                        position: point,
                                                        icon: icon.icon,
                                                        shadow: icon.shadow
                                                });

                                bindInfoWindow(marker, map, infoWindow, html);
                                }
            });
 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;

 and in IE it was way too slow for a professional application (and I
did get paid for this , so I was about to get mad at IE, then mad at
google maps,  and then I found out that in the initial loading just of
the blank map, that's where it was slowing it down, not in getting
hundreds of markers.    Blew my mind,
 setting the zoom in the load function to as little as possible (I
think 8 is optimal), made it go faster each time.  I don't know why it
takes it longer to load a blank map thats zoomed in more, but it sure
does.

Hope this helps anyone else, because I have found good help on here
before.

Eric Nickus

-- 
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 google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to