Luca Morandini wrote:
Vadim Gritsenko wrote:

Luca Morandini wrote:

function onClickMap () {

    var x= Number(cocoon.request.getParameter("map.x"));
    var y= Number(cocoon.request.getParameter("map.y"));


Eww!


Ahem... what "Eww!", exactly, means ?

:-)

http://www.urbandictionary.com/define.php?term=eww


BTW, I'd like mouse coordinates to be retrieved by querying the map widget rather than the request object... anyone knows a simple way to do this from within the widget class (subclass of AbstractWidget) ?


Just create your own MapEvent with x, y fields.


Thanks for the suggestion, I'll work on it.

MapEvent will allow to use event.x, event.y or some such instead of 'cocoon.request.getParameter("map.y")', which is eww ;-)

Vadim

Reply via email to