Hi Bart, since you are familiar with cursors, you can probably answer to my question. I've been thinking if it is possible to set a "real" crosshair cursor in browser environment. What I mean by real, is that it's precise; good enough for digitizing and large enough. I guess a CAD-like crosshair cursor, which covers the whole window, is impossible to implement but maybe some sort of middle way would be possible?
- mika - Bart van den Eijnden (OSGIS) kirjoitti: > 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 >> >> > > > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
