1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
4 <title>OpenLayers Editing Toolbar Example</title>
6 <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
7 <link rel="stylesheet" href="style.css" type="text/css" />
8 <script src="../lib/OpenLayers.js"></script>
9 <script src="../lib/Firebug/debug.js"></script>
10 <script type="text/javascript">
17 layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
18 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
20 vlayer = new OpenLayers.Layer.Vector( "Editable" );
21 map = new OpenLayers.Map( 'map', {
23 new OpenLayers.Control.PanZoom(),
24 new OpenLayers.Control.EditingToolbar(vlayer)
27 map.addLayers([layer, vlayer]);
29 map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
33 <body onload="init()">
34 <h1 id="title">Editing Toolbar Example</h1>
39 Demonstrate polygon, polyline and point creation and editing tools.
42 <div id="panel"></div>
43 <div id="map" class="smallmap"></div>