当前注册人数422815人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB Android   站内搜索 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

Google's static map API WebControl -- Shows you how to build an image based WebControl displaying static maps with markers

教你如何做出带有位置标签的Google静态地图API的Web控件及示例代码

2008年05月20日
C# (C# 2.0, C#), .NET (.NET, .NET 2.0), ASP.NET, Dev, Design
附件中的含源代码的控件GStaticMap是一个ASP.NET下的Web控件,允许你使用Google的静态地图API,显示一个带有地理位置标签的静态地图图像。
相关知识

首先,在Google地图上订阅一个免费的API序列号Key(登陆http://code.google.com/apis/maps/signup.html,然后把你的域名根目录和TCP/IP端口提交上去)。于是,使用测试工程的时候,别忘了改这些。

我们的GStaticMap控件时继承于System.Web.UI.Image的。
你需要添加的一些属性如下:
The next step is to more deeply describe our objects. So, a static map is defined by the following properties:

    * A width (integer, inherited from Image)宽
    * A height (integer, inherited from Image)高
    * A center (using our GCoordinate class, optional when there is at least one marker)中心位置
    * A zoom level (integer, optional when there is at least one marker, from 1 to 19)缩放尺寸
    * A rendering type (enumerator, optional; roadmap, by default, or designed for mobile devices)地图类型(公路地图还是移动设备等等)

A marker is defined by the following properties:

    * A color (enumerator, optional; the Static Map API restricts them to red, by default, blue, or green)
    * An optional letter (character, optional, from A to Z)

A coordinate is defined by the following properties:

    * A latitude (double)纬度
    * A longitude (double)经度

 

源代码原文下载:
Google's static map API WebControl Shows you how to build an image based WebControl displaying static maps with markers.

源码图片

点击链接查看大图
从本站下载附件及源代码(1个附件,已经成功下载757次)

最值得关注的外文源代码

Event Calendar [ ASP.NET 2.0 / C# ]
Google X script
A C# Google Bookmarks Class
Request Google´s Pagerank programmatically
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论65次,此处显示最近20次评论! 查看所有评论

在水一方sun  2015年01月13日
新账号,,现在不能下载,2天后再过来下载学习,,希望有用
集体回忆  2013年09月25日
新账号,不能下载代码,2天后再来学习
wwww  2012年07月31日
还好。
liuygis  2012年03月08日
真是不错啊 !!
卧龙  2011年12月20日
好,我很需要,但下载下来的是个坏的
gengchang  2011年11月16日
hphphp2008  2011年09月28日
先看看,不知对开发基于地图的应用程序有没有帮助
shen  2011年09月16日
需要
lingjun  2011年04月02日
谢谢!!!!
liukairui  2010年05月02日
hello  2010年03月05日
hello  2010年02月26日
hao
besthq  2009年12月21日
呵呵好
薛学  2009年06月30日
xuexue
ylgshuai  2009年06月13日
真是好东东啊。收藏了。只是不知道在哪里可以上传资源呢。
successyn  2009年06月10日
bucuo
dotKevin  2009年06月06日
正需要,感謝~
softzhang  2009年06月05日
下了再说
zhoubin  2009年06月03日
xiangyanjiu
dazuo0312  2009年05月06日
正需要
字数在300字内
请如实评论
200万国内源码搜索
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved zhihuishi   免责声明