Select single Shape when click on map

I placed 10,000 points on the Map object. There is no problem with that, and I can also perform rectangle selection. However, when I zoom out, the number of visible points decreases.

My first question is:

  • Is there some kind of clustering happening automatically?

Also, while in cmSelection mode, I noticed that when I click on a point with the mouse, it gets selected. My question about this is:

  • Which event can I use to get the selected point (or points) on a single mouse click, since there seems to be no Click event?

Thank you very much in advance.

On your second question, I have not done it but think that you need to initialise the mouse actions using the objMapMain.SendMouseUp = True

then set the cursor:

MapMain.MapCursor = crsrMapDefault
MapMain.CursorMode = tkCursorMode.cmIdentify

then create code in the code window for the map object event called ShapeIdentified where it gives you the shape number and layer handle.

1 Like