[OpenLayers-Commits] r11105 - in trunk/openlayers:
lib/OpenLayers/Control theme/default
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Fri Feb 11 10:40:40 EST 2011
Author: pgiraud
Date: 2011-02-11 07:40:39 -0800 (Fri, 11 Feb 2011)
New Revision: 11105
Modified:
trunk/openlayers/lib/OpenLayers/Control/PanZoom.js
trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js
trunk/openlayers/theme/default/style.css
Log:
Use mouse cursors (pointer or move) for the control buttons, p=fvanderbiest, r=me, (Closes #3047)
Modified: trunk/openlayers/lib/OpenLayers/Control/PanZoom.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/PanZoom.js 2011-02-11 13:37:54 UTC (rev 11104)
+++ trunk/openlayers/lib/OpenLayers/Control/PanZoom.js 2011-02-11 15:40:39 UTC (rev 11105)
@@ -123,7 +123,7 @@
var btn = OpenLayers.Util.createAlphaImageDiv(
this.id + "_" + id,
xy, sz, imgLocation, "absolute");
-
+ btn.style.cursor = "pointer";
//we want to add the outer div
this.div.appendChild(btn);
Modified: trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js 2011-02-11 13:37:54 UTC (rev 11104)
+++ trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js 2011-02-11 15:40:39 UTC (rev 11105)
@@ -180,6 +180,7 @@
new OpenLayers.Size(20,9),
imgLocation+"slider.png",
"absolute");
+ slider.style.cursor = "move";
this.slider = slider;
this.sliderEvents = new OpenLayers.Events(this, slider, null, true,
@@ -212,7 +213,7 @@
sz,
imgLocation+"zoombar.png");
}
-
+ div.style.cursor = "pointer";
this.zoombarDiv = div;
this.divEvents = new OpenLayers.Events(this, div, null, true,
Modified: trunk/openlayers/theme/default/style.css
===================================================================
--- trunk/openlayers/theme/default/style.css 2011-02-11 13:37:54 UTC (rev 11104)
+++ trunk/openlayers/theme/default/style.css 2011-02-11 15:40:39 UTC (rev 11105)
@@ -93,11 +93,13 @@
.olControlOverviewMapMinimizeButton {
right: 0px;
bottom: 80px;
+ cursor: pointer;
}
.olControlOverviewMapMaximizeButton {
right: 0px;
bottom: 80px;
+ cursor: pointer;
}
.olControlOverviewMapExtentRectangle {
@@ -402,6 +404,7 @@
.olControlLayerSwitcher .minimizeDiv {
top: 5px;
right: 0px;
+ cursor: pointer;
}
.olBingAttribution {
More information about the Commits
mailing list