My task is to create a custom widget in OD where the user will click on map to choose a region. I thought of using a spatial query to fetch the id of the region and later fetch more information from a separate table. But I cannot figure out how to set the click-event on dataSource or another object representing the map.
Something like:
this.dataSourceProxy.on("click", function() {...
but it doesn't work.
Also I tryed to create MapWidgetProxy-object but didn't succeed.
Somebody done this before and can give a hint? I'm stuck.
//Janne