<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="imagetoolbar" content="no"> <!--ie image gizmo OFF!-->
    <style type="text/css">
        #map {
            width: 800px;
            height: 475px;
            border: 1px solid black;
        }
    </style>
    <script src="lib/OpenLayers.js"></script>
    <script type="text/javascript">
        <!--
        var map, layer;

        function init(){
            map = new OpenLayers.Map('map');
            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", 
                "http://octo.metacarta.com/cgi-bin/mapserv",
                {map: '/mapdata/vmap_wms.map', layers: 'basic', format: 'image/jpeg'} );
                
            map.addLayer(layer);
            var markers = new OpenLayers.Layer.Marker( "Markers" );
            map.addLayer(markers);
            
            var icon = new OpenLayers.Icon('http://boston.openguides.org/markers/AQUA.png',new OpenLayers.Size(10,17));
            for(lon=-180; lon < 180; lon+=10) {
                for(lat=-90; lat < 90; lat+=10) {
                    marker = new OpenLayers.Marker(new OpenLayers.LonLat(lon, lat),icon);
                    marker.events.register('mousedown', marker, function(evt) { alert(this.icon.url); Event.stop(evt); });
                    markers.addMarker(marker);
                }
            }
//            markers.addMarker(new OpenLayers.Marker(new OpenLayers.LonLat(0,45),icon));
//            marker = new OpenLayers.Marker(new OpenLayers.LonLat(90,10),icon);
//            marker.events.register('mousedown', marker, function(evt) { alert(this.icon.url); Event.stop(evt); });
//            markers.addMarker(marker); 
            map.setCenter(new OpenLayers.LonLat(0, 0), 0);
            map.addControl(new OpenLayers.Control.LayerSwitcher());
        }
        // -->
    </script>
  </head>
  <body onload="init()">
    <h1>OpenLayers Example</h1>
    <div id="map"></div>
  </body>
</html>

Test case to show map with *lots* of markers. Seems pretty responsive
Test case to show map with *lots* of markers. Seems pretty responsive

git-svn-id: 86a4f41f9d0383640198789122b520d4105b319a@250 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
