code for creating labels on shapefiles

Mar 13, 2013 at 7:19 AM
Hi ,
I am new to mapwingis , iam developing an application in which i can add shape file and when click on point it will display the information
Mar 14, 2013 at 9:15 PM
You will need a way to get the shapes that are in the vicinity of the mouse cursor and then once that is established get the attributes of that shape or shapes.
Main docs here:
Maybe in the map_MouseMoveEvent you can put a buffer around the cursor position then set extents to that position plus a buffer.
then see what shapes are in that extent

or you can do it on the MouseUp event. Either way the links above also have samples.

Mar 15, 2013 at 1:26 PM
If you mean by clicking on the point selecting the point you can use sf.get_ShapeSelected(): to get the selected point and read the attribute data and display it.
You can also use the mouse_clickEvent to select shapes around the clickpoint using sf.SelectShapes():