Click here to Skip to main content
12,354,533 members (66,947 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
Hi

i am using asp.net ImageMap control, in this control i am displaying one map.. and i am not know how to get the co-ordinates of regions in the map.

(example: i am taking India map, if i click on one state then that state name is displayed)

How can i know the coordinates of each region?

my code like:

<asp:ImageMap ID="ImageMap1" runat="server" ImageUrl="images/ImageMap1.jpg">
             <asp:PolygonHotSpot Coordinates="" PostBackValue="Test"  />
        </asp:ImageMap>


Thanks
K.Ajay
Posted 22-Jan-13 2:33am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

You need to define co-ordinates for every hotspot you define.
Sample:
<asp:CircleHotSpot PostBackValue="Jupiter"
                   AlternateText="Jupiter"
                   X="410" Y="172" Radius="55"
                   HotSpotMode="PostBack" />

Refer: A Quick Start Lesson to the ASP.NET ImageMap Control[^]
Using ASP.NET ImageMap Control [^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 22 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100