By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,160 Members | 1,983 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,160 IT Pros & Developers. It's quick & easy.

dynamic HotSpot

P: n/a
yo
I need to display some geographic related database records on an image
map object. So far all the examples I found show hard coded hotspot
coordinates. I would like to get some sameple code behind in C# to
show me how to do this. Another problem in hand is when the image map
is resized, how to redisplay these hotspots accordingly. By the way,
how dose the x and y values are calculated on a map? Thank you in
advance.
Feb 14 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
there are two types of image maps in html. serverside and client side.

with server side, you just use an image button, and the x/y coord's are sent
with the postback. you then calc the hot spot in code.

with client side the image references an image map which defines "hot spots"
(rect, circle or poloygons coords) and a link for each hotspot.

in both cases you think of the image as a grid of pixels with 0,0 at the top
left. how you code determines the hot spots is up to you. there are tools
that will produce an image map from an image. you just open the image in the
tool and draw hot spots.

if you transform (scale/pan) the image, you just apply the same
transformation to the hot spot coords.

-- bruce (sqlwork.com)
"yo" wrote:
I need to display some geographic related database records on an image
map object. So far all the examples I found show hard coded hotspot
coordinates. I would like to get some sameple code behind in C# to
show me how to do this. Another problem in hand is when the image map
is resized, how to redisplay these hotspots accordingly. By the way,
how dose the x and y values are calculated on a map? Thank you in
advance.
Feb 14 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.