* (Closes #2360) make Layer.addOptions call initResolutions if necessary * (Closes #2656) no way to pass read options from protocol to format * (Closes #2751) Changes in languages: "es" and "ca". * (Closes #2814) SLDSelect control tests failing * (Closes #2815) Cluster Strategy should not destroy all features Also: * Change examples to use OSGeo, rather than MetaCarta, servers. * Change copyright statements to correctly state joint copyright in the project, rather than MetaCarta copyright. git-svn-id: http://svn.openlayers.org/branches/openlayers/2.10@10715 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
92 lines
2.7 KiB
HTML
92 lines
2.7 KiB
HTML
<html>
|
|
<head>
|
|
<title>Pan and Zoom Panels</title>
|
|
<link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
|
|
|
|
<!--
|
|
-- Special stylesheet inclusion for ie6, which doesn't handle the alpha
|
|
-- channel of images correctly. The special ie6 stylesheet will only
|
|
-- be included if the browser running is ie6. For now, the only thing it
|
|
-- does is load alternative, non-alpha pngs for the zoom/pan panels.
|
|
-->
|
|
|
|
<!--[if lte IE 6]>
|
|
<link rel="stylesheet" href="../theme/default/ie6-style.css" type="text/css" />
|
|
<![endif]-->
|
|
|
|
<link rel="stylesheet" href="style.css" type="text/css" />
|
|
<script type="text/javascript" src="../lib/OpenLayers.js"></script>
|
|
<script>
|
|
var map;
|
|
var lon = 5;
|
|
var lat = 40;
|
|
var zoom = 5;
|
|
function init(){
|
|
map = new OpenLayers.Map("map", {
|
|
controls: [
|
|
new OpenLayers.Control.Navigation(),
|
|
new OpenLayers.Control.PanPanel(),
|
|
new OpenLayers.Control.ZoomPanel()
|
|
]
|
|
});
|
|
|
|
var wms = new OpenLayers.Layer.WMS(
|
|
"OpenLayers WMS",
|
|
"http://vmap0.tiles.osgeo.org/wms/vmap0",
|
|
{layers: 'basic'}
|
|
);
|
|
map.addLayers([wms]);
|
|
|
|
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
|
|
}
|
|
</script>
|
|
<style type="text/css">
|
|
.olControlPanPanel {
|
|
width: 100%;
|
|
height: 100%;
|
|
left: 0;
|
|
top: 0;
|
|
}
|
|
.olControlPanPanel .olControlPanNorthItemInactive {
|
|
left: 50%;
|
|
margin-left: -9px;
|
|
top: 0;
|
|
}
|
|
.olControlPanPanel .olControlPanSouthItemInactive {
|
|
left: 50%;
|
|
margin-left: -9px;
|
|
top: auto;
|
|
bottom: 0;
|
|
}
|
|
.olControlPanPanel .olControlPanWestItemInactive {
|
|
top: 50%;
|
|
margin-top: -9px;
|
|
left: 0;
|
|
}
|
|
.olControlPanPanel .olControlPanEastItemInactive {
|
|
top: 50%;
|
|
margin-top: -9px;
|
|
left: auto;
|
|
right: 0;
|
|
}
|
|
.olControlZoomPanel {
|
|
left: auto;
|
|
right: 23px;
|
|
top: 8px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body onload='init();'>
|
|
<h1 id="title">Pan and Zoom Panels</h1>
|
|
<div id="tags"></div>
|
|
<p id="shortdesc">Customizable pan and zoom panels</p>
|
|
</p>
|
|
<div id="map" class="smallmap"></div>
|
|
<p id="docs">
|
|
The pan and zoom panels allow you to use CSS styling to change the
|
|
look and feel of the panels, including changing their position
|
|
and their icons without needing to change any code.
|
|
</p>
|
|
</body>
|
|
</html>
|