Use mouse cursors (pointer or move) for the control buttons, p=fvanderbiest, r=me, (Closes #3047)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11105 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
pgiraud
2011-02-11 15:40:39 +00:00
parent 47767fbd0c
commit 92849418d8
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ OpenLayers.Control.PanZoom = OpenLayers.Class(OpenLayers.Control, {
var btn = OpenLayers.Util.createAlphaImageDiv( var btn = OpenLayers.Util.createAlphaImageDiv(
this.id + "_" + id, this.id + "_" + id,
xy, sz, imgLocation, "absolute"); xy, sz, imgLocation, "absolute");
btn.style.cursor = "pointer";
//we want to add the outer div //we want to add the outer div
this.div.appendChild(btn); this.div.appendChild(btn);
+2 -1
View File
@@ -180,6 +180,7 @@ OpenLayers.Control.PanZoomBar = OpenLayers.Class(OpenLayers.Control.PanZoom, {
new OpenLayers.Size(20,9), new OpenLayers.Size(20,9),
imgLocation+"slider.png", imgLocation+"slider.png",
"absolute"); "absolute");
slider.style.cursor = "move";
this.slider = slider; this.slider = slider;
this.sliderEvents = new OpenLayers.Events(this, slider, null, true, this.sliderEvents = new OpenLayers.Events(this, slider, null, true,
@@ -212,7 +213,7 @@ OpenLayers.Control.PanZoomBar = OpenLayers.Class(OpenLayers.Control.PanZoom, {
sz, sz,
imgLocation+"zoombar.png"); imgLocation+"zoombar.png");
} }
div.style.cursor = "pointer";
this.zoombarDiv = div; this.zoombarDiv = div;
this.divEvents = new OpenLayers.Events(this, div, null, true, this.divEvents = new OpenLayers.Events(this, div, null, true,
+3
View File
@@ -93,11 +93,13 @@ div.olControlMousePosition {
.olControlOverviewMapMinimizeButton { .olControlOverviewMapMinimizeButton {
right: 0px; right: 0px;
bottom: 80px; bottom: 80px;
cursor: pointer;
} }
.olControlOverviewMapMaximizeButton { .olControlOverviewMapMaximizeButton {
right: 0px; right: 0px;
bottom: 80px; bottom: 80px;
cursor: pointer;
} }
.olControlOverviewMapExtentRectangle { .olControlOverviewMapExtentRectangle {
@@ -402,6 +404,7 @@ div.olControlSaveFeaturesItemInactive {
.olControlLayerSwitcher .minimizeDiv { .olControlLayerSwitcher .minimizeDiv {
top: 5px; top: 5px;
right: 0px; right: 0px;
cursor: pointer;
} }
.olBingAttribution { .olBingAttribution {