Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image co-ordinates

Status
Not open for further replies.

shams123

Programmer
Jan 27, 2006
81
MY
Hi,

I am making a page in asp.net 2.0 which will allow certain images to be clicked. E.g there would be a continents on world map, maybe countries too. So a user could actually go and click individual countries and I'll need to save whoever clicked whichever country.

I am wondering what should be the best approach to this one? Do I store the country co-ordinates in the big image in a database (to link up the clicks)? what if the map has to be moved on the page and the co-ordinates change?

I had a look over image map. I am not sure if a hand drawn design is supported by this component (currently it says polygon, circle and rectangle hotspots).

Would appreciate all help.

Thanks!
 
An image map would still do the job. You would just use a combination of the polygons, circles, and rectangles to cover an area but they would all point to the same link. For examples if you had a map of the United States and wanted to map the state of Texas. You would use a rectangle to cover the panhandle and a circle to cover the remaining part of the state. Both the circle and rectangle would handle the same event of what you need done.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top