Hello ThinkGeo,
I am feeling that this is the end of my summer as I am here bothering you with my questions again . My issue today is related with interactivity. I have a MapShapeLayer that hosts my "moving" assets. I used the MapShapelayer as this is the one that allows me to assign differenct "images" per feature/asset. Now, I want to be able to click on the Map and be able to select the "asset".
The simpler way to do this is to itterate through the MapShapes of my MapShapeLayer, and for each mapshape find the distance between the point I clicked and that mapShape. The MapShape with the smaller distance is the one I selected. You obvisouly see that this is not a great way to do it. I was hoping for something like "a mouse click handler" on the layer that contains the features I want to select. Then by clicking on the Map, the click propagates to the layer and the layer event handler returns the features you have clicked on. Is there anyhing like this available?
Kind Regards
Yiannis