On Wed, Feb 9, 2011 at 2:42 AM, Imran Rajjad <[email protected]> wrote:
> Hi list,
>
> I have assigned a custom cursor to my zoomBox control by adding a css
> Class in style.css.(http://trac.osgeo.org/openlayers/wiki/OpenLayersCursors).
> Now the issue is when page is displayed, my mouse cursor is set to
> that custom cursor when the zoomBox control isnt even activated. After
> toggling controls everything is fine. But I need the mouse be default
> at page load. Any idea what I might need to do or have done wrong.

I have run into that problem also. My solution is not too pretty, I
toggle the controls in code below and then my initial cursor displays
correctly.
    panel.activateControl(panControl);
    panel.activateControl(zoomControl);

-- 
Richard Greenwood
[email protected]
www.greenwoodmap.com
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to