1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <title>OpenLayers Navigation History Example</title>
4 <link rel="stylesheet" href="style.css" type="text/css" />
16 <script src="../lib/OpenLayers.js"></script>
17 <script type="text/javascript">
21 map = new OpenLayers.Map('map');
23 nav = new OpenLayers.Control.NavigationHistory();
24 // parent control must be added to the map
27 panel = new OpenLayers.Control.Panel(
28 {div: document.getElementById("panel")}
30 panel.addControls([nav.next, nav.previous]);
31 map.addControl(panel);
33 var layer = new OpenLayers.Layer.WMS(
35 "http://labs.metacarta.com/wms/vmap0",
39 map.zoomToMaxExtent();
43 <body onload="init()">
44 <h1 id="title">Map Navigation History Example</h1>
50 A control for zooming to previous and next map extents.
53 <div id="map" class="smallmap"></div>
54 Map navigation history controls<div id="panel"></div>