[OpenLayers-Users] crosshair control
Michael
mdm at yachtpc.com
Tue Jul 5 17:09:04 EDT 2011
I think you have two issues
1. to display the mouse position, use the mouse control:
http://dev.openlayers.org/docs/files/OpenLayers/Control/MousePosition-js.html
2. to change the cursor, you can just use standard cursor styling, with
javascript or css, right?
I have a dim recall of this being available as an OpenLayers facility
too, but it should be pretty straightforward
Michael
On 7/5/2011 12:20 PM, lars lingner wrote:
> Hello list,
>
> I'm looking for a crosshair control in OL. The control should display a
> crossing horizontal and a vertical line, following the curser. The
> intersection would be the current mouse position.
> The lines reaches from one mapframe border to the opposite border.
>
> Optionally I want to display the position coordinates "somewhere nearby"
> the mouse position or at an fixed position on the map.
>
> Does anybody done this before? I couldn't find such a thing.
>
> If there isn't any code what would be the best way to implement it?
>
> Thank you for any ideas or links!
>
> Lars
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
More information about the Users
mailing list