Use css sprites technique to simplify the NavigationHistory controls. r=tschaub. (Closes #1555)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7422 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Frédéric Junod
2008-06-23 06:56:58 +00:00
parent 8f778d8a0c
commit f8bf59445c
4 changed files with 12 additions and 30 deletions
+1 -14
View File
@@ -17,18 +17,7 @@
<script type="text/javascript">
var map, nav, panel;
// preload images if you care
var preload = [
"../theme/default/img/view_previous_on.png",
"../theme/default/img/view_next_on.png"
];
var img = new Array(preload.length);
for(var i=0; i<preload.length; ++i) {
img[i] = new Image();
img[i].src = preload[i];
}
function init(){
function init() {
map = new OpenLayers.Map('map');
nav = new OpenLayers.Control.NavigationHistory();
@@ -48,8 +37,6 @@
);
map.addLayer(layer);
map.zoomToMaxExtent();
}
</script>
</head>