[OpenLayers-Trac] Re: [OpenLayers] #3578: Need a way to get the coordinates of the click on vector features/layers

OpenLayers trac-20090302 at openlayers.org
Fri Nov 18 03:18:20 EST 2011


#3578: Need a way to get the coordinates of the click on vector features/layers
-------------------------------------+--------------------------------------
  Reporter:  vishcious               |       Owner:  tschaub     
      Type:  feature                 |      Status:  reopened    
  Priority:  minor                   |   Milestone:  2.12 Release
 Component:  Control.SelectFeature   |     Version:  2.11        
Resolution:                          |    Keywords:              
     State:  Awaiting User Feedback  |  
-------------------------------------+--------------------------------------
Changes (by ahocevar):

  * state:  => Awaiting User Feedback


Comment:

 @vishcious: Try the above patch and set
 {{{OpenLayers.Events.prototype.includeXY = true}}} at the top of your
 script. Then you'll get an xy object in the 1st listener argument. If you
 like it, it would be appreciated if you finish the patch (i.e. add apidoc
 comments and unit tests).

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3578#comment:5>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list