AnsweredAssumed Answered

Click on map

Question asked by janne58 on Nov 17, 2015
Latest reply on Nov 23, 2015 by mariczone

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.