[OpenLayers-Users] cursor changing with ZoomBox control
Bart van den Eijnden (OSGIS)
bartvde at osgis.nl
Tue Oct 7 14:36:31 EDT 2008
Hi,
have a look at the following ticket for some hints, you'll need to
remove some lines of the OL sourcecode, e.g. Handler/Box.js which sets
the cursor to default. Handler/Drag.js also sets the cursor.
http://trac.openlayers.org/ticket/1484
Best regards,
Bart
Mark Nine wrote:
> Hi,
>
> I set the cursor for the ZoomBox control using the following method...
>
> var zoomFeatureOptions = {
> eventListeners: {"activate": function()
> {document.getElementById('map').style.cursor =
>
> url(mag.png),auto";}},
> title:"Zoom into an area by clicking and dragging"
> };
> zoom = new OpenLayers.Control.ZoomBox(zoomFeatureOptions);
>
> ...which works great except for one thing. Once I zoom and the map is
> redrawn, the cursor resets to the default, even though the control is still
> selected. Is there another event I can catch? Or a better way to set the
> cursor for the zoom control?
>
> Thanks, Mark
>
> p.s. I'm using OL 2.7
>
--
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde at osgis.nl
http://www.osgis.nl
More information about the Users
mailing list