Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

dynamic HotSpot

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
yo - 14 Feb 2008 09:04 GMT
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.
bruce barker - 14 Feb 2008 17:06 GMT
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)

> 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
[quoted text clipped - 3 lines]
> how dose the x and y values are calculated on a map?  Thank you in
> advance.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.