如何在 ASP.Net 网站中集成雅虎地图
如果我们将地址作为查询字符串传递,如何在 gridview 中显示雅虎静态地图?另请告诉如何显示动态雅虎地图。我搜索了雅虎地图并获得了以下链接 http://developer.yahoo.com/ flash/maps/examples.html, http://developer.yahoo.com/地图/rest/V1/和http://developer.yahoo.com/maps/。我没有收到任何包含在 ASP.Net 网站中集成 yahoo 地图的代码的链接!
How to display yahoo static map in gridview if we pass address as query string? Also please tell how to display dynamic yahoo maps also. I have searched about yahoo maps and got the following links http://developer.yahoo.com/flash/maps/examples.html, http://developer.yahoo.com/maps/rest/V1/ and http://developer.yahoo.com/maps/. I did not get any link which has code for integrating yahoo map in an ASP.Net website!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我创建了雅虎动态地图,地址可以作为页面中存在的隐藏字段的值传递。隐藏字段的值可以在 page_load 事件中动态传递。我在 ASP.Net 中母版页封装的子页面中创建了这个。
在开始之前,用户必须通过登录您的 yahoo ID 并导航到此链接 https://login.yahoo.com/config/login_verify2?.src=devnet&.done=http://developer .apps.yahoo.com/wsregapp/ 并提供我们的网站 URL。
显示雅虎地图的代码如下:
。地图 {
高度:400像素;
宽度:700 像素;
字体系列:Verdana;
字体大小:11px;
字体粗细:粗体;
}
注意:速率限制:Yahoo! AJAX Maps API 限制为每个 IP 每天 50,000 次查询。检查此链接
http://developer.yahoo.com/search/rate.html
I have created yahoo dynamic map, the address can be passed as value of a hidden field present in the page. The value for hidden field can be dynamically passed in page_load event. I have created this in the child page encapsulated by master page in ASP.Net.
Before starting, the user has to generate Application ID for using yahoo maps by logging into your yahoo ID and navigating to this link https://login.yahoo.com/config/login_verify2?.src=devnet&.done=http://developer.apps.yahoo.com/wsregapp/ and providing our website URL.
The code for displaying yahoo map is given below:
.map {
height: 400px;
width: 700px;
font-family:Verdana;
font-size:11px;
font-weight:bold;
}
NOTE: Rate limiting: The Yahoo! AJAX Maps API is limited to 50,000 queries per IP per day. Check this link
http://developer.yahoo.com/search/rate.html