My goal is to let the user click on a specific location on a map to add a Placemark, and then edit the placemark by click its icon (change its name, move it around, etc).
I am using a PictureBox to show the map, and by registering the MouseDoubleClick event I am drawing an Image on the map with GDI+ DrawImage() method. The problem is that after the placemark’s Image was drawn, it does not editable: the user cant click the icon and move it around, change its name etc. Is there any other design pattern I can follow? maybe using other controls… ?
My goal is to let the user click on a specific location on a
Share
You need to have a concept of layering the items. When you place that icon on the image, you need to store its coordinates/size in an array. If the user clicks the icon, you can detect its location based on the stored coordinates and then allow the user to select/move it around, redrawing the image as they do this, based on your main background image + the layered array of icons.