如何在asp.net ImageMap控件中找到map的坐标 [英] how to findout the coordinates of map in asp.net ImageMap control

查看:157
本文介绍了如何在asp.net ImageMap控件中找到map的坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




i我正在使用asp.net ImageMap控件,在这个控件中我正在显示一个地图..而且我不知道如何获取地区的坐标地图。



(例如:我正在拍摄印度地图,如果我点击一个州,则会显示该州名称)



我怎么知道每个地区的坐标?



我的代码如下:



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>







谢谢

K.Ajay




Thanks
K.Ajay

推荐答案

你需要为你定义的每个热点定义坐标。

样本:

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" />





参考: ASP.NET ImageMap控件的快速入门课程 [ ^ ]

使用ASP.NET ImageMap控件 [ ^ ]


这篇关于如何在asp.net ImageMap控件中找到map的坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆