1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <style type="text/css">
7 border: 1px solid black;
10 <script src="../../lib/OpenLayers.js" type="text/javascript"></script>
11 <script type="text/javascript">
17 map = new OpenLayers.Map('map');
18 var wms = new OpenLayers.Layer.WMS(
20 "http://labs.metacarta.com/wms/vmap0",
24 vectors = new OpenLayers.Layer.Vector(
27 styleMap: new OpenLayers.StyleMap({
28 externalGraphic: "../../img/marker-gold.png",
34 map.addLayers([wms, vectors]);
39 for(var i = 0; i < 10; i++){
43 new OpenLayers.Feature.Vector(
44 new OpenLayers.Geometry.Point(x, y)
49 map.setCenter(new OpenLayers.LonLat(x, y), 5);
50 vectors.addFeatures(features);
55 <body onload="init()">
57 <p>Use the pan buttons. See flicker at end of animated pan.</p>