[OpenLayers-Users] Change mouse pointer for Zoombox control

XinGang Li slinavlee at gmail.com
Fri Dec 5 10:31:05 EST 2008


Yes, This happen on all moden browsers.

May be we can avoid this problem by apply cursor style on layer container
div instead of map div.

This should happen automatically.
> Which OpenLayers version are you using?
> Which browser?
>
> Does it happen as well in the cursor example at:
>
> http://dev.openlayers.org/sandbox/bartvde/cursor/openlayers/examples/cursor.html
>
> Best regards,
> Bart
>
> Subha Ramakrishnan wrote:
> > Hi ,
> > I did try out the changes made in the patch.
> > Now, when i select the zoombox control, the mouse pointer changes to a
> > zoombox cursor. But i am still facing the same problem.Once, i zoom in
> > to an area using the control, the mouse pointer reverts back to the
> > default pointer.
> >
> > Should i explicitly handle that event and set the mouse pointer ?
> >
> > Thanks for the help.
> >
> > Regards,
> > Subha
> > bartvde at osgis.nl wrote:
> >> Hi,
> >>
> >> see the patch at:
> >>
> >> http://trac.openlayers.org/ticket/1484
> >>
> >> Best regards,
> >> Bart
> >>
> >>
> >>> Hi,
> >>>
> >>> I have a question regarding mouse pointer for a zoom box control.
> >>> Is it possible for me to change the mouse pointer to indicate that zoom
> >>> box control is currently active.
> >>> I did try setting the cursor using "map.style.cursor" and it does
> >>> change
> >>> when the zoom box control is selected, but when i zoom in to an area,
> >>> the cursor goes back to the default mouse pointer.
> >>>
> >>> Does anyone know how to do is? Or is it available in Openlayers and
> >>> i am
> >>> missing it?
> >>>
> >>> Thanks for the help.
> >>>
> >>> Regards,
> >>> Subha
> >>> _______________________________________________
> >>> Users mailing list
> >>> Users at openlayers.org
> >>> http://openlayers.org/mailman/listinfo/users
> >>>
> >>>
> >>
> >>
> >>
> >>
> >
> >
> >
>
>
> --
> Bart van den Eijnden
> OSGIS, Open Source GIS
> bartvde at osgis.nl
> http://www.osgis.nl
>
> *************************************
>



-- 
Li XinGang
EMail: slinavlee at gmail.com
Blog:   avlee.cnblogs.com
Site:    www.mapboost.org.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20081205/6a1e3ee8/attachment.html


More information about the Users mailing list