Sha256: da010e1a7a1592bdb3143cfb8a20bb1ed8aaede0cdb1d1df34596ff840d881b3

Contents?: true

Size: 1.67 KB

Versions: 12

Compression:

Stored size: 1.67 KB

Contents

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <style type="text/css">
        #map {
            width: 800px;
            height: 475px;
            border: 1px solid black;
        }
    </style>
    <script src="../../lib/OpenLayers.js" type="text/javascript"></script>
    <script type="text/javascript">
        
        var map;
        var vectors;
        
        function init(){
            map = new OpenLayers.Map('map');
            var wms = new OpenLayers.Layer.WMS(
                "OpenLayers WMS", 
                "http://labs.metacarta.com/wms/vmap0",
                {layers: 'basic'}
            );

            vectors = new OpenLayers.Layer.Vector(
                "Simple Geometry",
                {
                    styleMap: new OpenLayers.StyleMap({
                        externalGraphic: "../../img/marker-gold.png",
                        pointRadius: 10
                    })
                }
            );
            
            map.addLayers([wms, vectors]);
            
            var features = [];
            var x = -111.04;
            var y = 45.68;
            for(var i = 0; i < 10; i++){
                x += i * .5;
                y += i * .1;
                features.push(
                    new OpenLayers.Feature.Vector(
                        new OpenLayers.Geometry.Point(x, y)
                    )
                );
            }
            
            map.setCenter(new OpenLayers.LonLat(x, y), 5);
            vectors.addFeatures(features);
        };
        
    </script>
  </head>
  <body onload="init()">
    <div id="map"></div>
    <p>Use the pan buttons.  See flicker at end of animated pan.</p>
  </body>
</html>

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
postrunner-0.0.10 misc/openlayers/tests/manual/reflow.html
postrunner-0.0.9 misc/openlayers/tests/manual/reflow.html
postrunner-0.0.8 misc/openlayers/tests/manual/reflow.html
postrunner-0.0.7 misc/openlayers/tests/manual/reflow.html
postrunner-0.0.6 misc/openlayers/tests/manual/reflow.html
postrunner-0.0.5 misc/openlayers/tests/manual/reflow.html
postrunner-0.0.4 misc/openlayers/tests/manual/reflow.html
gb_mapfish_appserver-0.0.5 vendor/assets/javascripts/openlayers/tests/manual/reflow.html
gb_mapfish_appserver-0.0.4 vendor/assets/javascripts/openlayers/tests/manual/reflow.html
gb_mapfish_appserver-0.0.3 vendor/assets/javascripts/openlayers/tests/manual/reflow.html
gb_mapfish_appserver-0.0.2 vendor/assets/javascripts/openlayers/tests/manual/reflow.html
gb_mapfish_appserver-0.0.1 vendor/assets/javascripts/openlayers/tests/manual/reflow.html