Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:

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



Thanks
K.Ajay
Posted

1 solution

You need to define co-ordinates for every hotspot you define.
Sample:
HTML
<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 [^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900