[OpenLayers-Dev] approach question...

John Cole john.cole at uai.com
Wed Nov 14 10:09:11 EST 2007

I really like the changes made in 2.5, and I’m trying to modify some of my
objects to follow the styles and practices in 2.5, but the examples haven’t
quite caught up to the edge :-)


What I’m trying to do is create a control that can be added to a panel
(acting as a toolbar) that allows me to set a callback function that will
return the map coordinates off of a click on the map.


I’ve gathered that I need a control that needs to consume a handler that
handles the click event, but I can’t find any examples of just returning the
mouse click in map coordinates.  Lots of partial examples (get-feature-info
is how we are doing it, but I want to do it in a control), The drawing
controls are close, but they seem to magically handle all of their stuff,
again leaving no example.


Could one of the handler guru’s write up or point me to a generic call back
control howto or example?


Many thanks,



No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.15.31/1130 - Release Date: 11/14/2007
9:27 AM
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20071114/0ea7bc3b/attachment.html

More information about the Dev mailing list