Clickable objects

Topics: General Topics
Oct 29, 2006 at 10:13 AM
Hi,

is it possible to bring not only Bitmaps (like pie charts sample) to the map but even clickable objects like
an imagebutton or hyperlink?

br

jubi
Developer
Oct 30, 2006 at 1:45 AM
SharpMap creates images, and an image is not clickable like that. You would have to supply your own code to make mouse-events in specific areas on the image.
May 6, 2007 at 11:09 AM

SharpGIS wrote:
SharpMap creates images, and an image is not clickable like that. You would have to supply your own code to make mouse-events in specific areas on the image.

How do you make mouse events in specific areas on the image, I also read the other post where you can store the location(x,y) of a clicked point on the map to a database, can we compare the x,y data to a given place's x,y and then pop up a small window or hyperlink it to something
Coordinator
Jun 20, 2007 at 1:06 AM
You can use the ImageToWorld and WorldToImage methods of the Map class to translate between data (x, y) coordinates and screen (x, y) coordinates. Once you have this, you can do anything you want.

You are also free to put controls in the MapImage (and improved MapBox) control, and locate them anywhere you want in that control, like normal Win32 controls.