资源简介
Google地图API接口大全,提供最全面的goole地图ApI编码接口
代码片段和文件信息
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
// download:http://www.codefans.net
public partial class ControlPerformanceTest : System.Web.UI.Page
{
string[] sIcons = { “icons/sun.png“ “icons/rain.png“ “icons/snow.png“ “icons/storm.png“ };
Random Rand = new Random();
protected void Page_Load(object sender EventArgs e)
{
//You must specify Google Map API Key for this component. You can obtain this key from http://code.google.com/apis/maps/signup.html
//For samples to run properly set GoogleAPIKey in Web.Config file.
GoogleMapForASPNet1.GoogleMapobject.APIKey = ConfigurationManager.AppSettings[“GoogleAPIKey“];
//Specify width and height for map. You can specify either in pixels or in percentage relative to it‘s container.
GoogleMapForASPNet1.GoogleMapobject.Width = “800px“; // You can also specify percentage(e.g. 80%) here
GoogleMapForASPNet1.GoogleMapobject.Height = “600px“;
//Specify initial Zoom level.
GoogleMapForASPNet1.GoogleMapobject.ZoomLevel = 5;
//Specify Center Point for map. Map will be centered on this point.
GoogleMapForASPNet1.GoogleMapobject.CenterPoint = new GooglePoint(“1“ 40.04443 -87.45117);
//Load 500 icons
for (int i = 0; i < 500; i++)
{
//Add pushpins for map.
GooglePoint GP = new GooglePoint();
GP.ID = i.ToString();
GP.Latitude =(double)cCommon.RandomNumber(30.0m48.0m);
GP.Longitude =(double)cCommon.RandomNumber(-100.0m-70.0m);
//Specify bubble text here. You can use standard HTML tags here.
GP.InfoHTML = “This is Pushpin “+i.ToString();
//Specify random icon image..
GP.IconImage = sIcons[Rand.Next(0 3)];
GoogleMapForASPNet1.GoogleMapobject.Points.Add(GP);
}
//Load vehicle pushpins
GooglePoint GP1 = new GooglePoint();
GP1.ID = “RedCar“;
GP1.Latitude = 32.65669;
GP1.Longitude = -79.47268; //+0.001
//Specify bubble text here. You can use standard HTML tags here.
GP1.InfoHTML = “This is Red car“;
//Specify icon image. This should be relative to root folder.
GP1.IconImage = “icons/RedCar.png“;
GoogleMapForASPNet1.GoogleMapobject.Points.Add(GP1);
GooglePoint GP2 = new GooglePoint();
GP2.ID = “YellowCar“;
GP2.Latitude = 45.63619; //+0.001
GP2.Longitude = -85.44268;
GP2.InfoHTML = “This is Yellow car“;
GP2.IconImage = “icons/YellowCar.png“;
GoogleMapForASPNet1.GoogleMapobject.Points.Add(GP2);
GooglePoint GP3 = new GooglePoint();
GP3.ID
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 20217 2009-08-05 18:41 Google电子地图\GoogleMapControl\App_Code\cGoogleMap.cs
文件 8921 2009-08-05 18:41 Google电子地图\GoogleMapControl\App_Code\GService.cs
文件 42360 2007-06-15 15:18 Google电子地图\GoogleMapControl\bin\System.Web.Extensions.Design.dll
文件 701816 2007-01-20 17:56 Google电子地图\GoogleMapControl\bin\System.Web.Extensions.dll
文件 1411 2008-03-18 10:57 Google电子地图\GoogleMapControl\ControlPerformanceTest.aspx
文件 4132 2009-08-05 18:43 Google电子地图\GoogleMapControl\ControlPerformanceTest.aspx.cs
文件 1884 2009-08-04 11:42 Google电子地图\GoogleMapControl\Default.aspx
文件 406 2008-03-18 10:38 Google电子地图\GoogleMapControl\Default.aspx.cs
文件 159 2007-11-21 11:24 Google电子地图\GoogleMapControl\GNU General Public License.txt
文件 1568 2009-08-04 10:33 Google电子地图\GoogleMapControl\GoogleMapControl.sln
..A..H. 22528 2009-12-19 16:27 Google电子地图\GoogleMapControl\GoogleMapControl.suo
文件 20483 2008-03-27 17:14 Google电子地图\GoogleMapControl\GoogleMapForASPNet.ascx
文件 2805 2009-12-11 17:09 Google电子地图\GoogleMapControl\GoogleMapForASPNet.ascx.cs
文件 86 2008-03-27 09:53 Google电子地图\GoogleMapControl\GService.asmx
文件 1258 2005-07-12 22:54 Google电子地图\GoogleMapControl\icons\1.png
文件 1349 2005-07-12 23:12 Google电子地图\GoogleMapControl\icons\2.png
文件 1353 2005-07-12 22:39 Google电子地图\GoogleMapControl\icons\3.png
文件 6907 2008-03-17 10:56 Google电子地图\GoogleMapControl\icons\FireTruck.png
文件 1041 2008-03-11 16:43 Google电子地图\GoogleMapControl\icons\golf.png
文件 1295 2008-03-11 16:43 Google电子地图\GoogleMapControl\icons\horse.png
文件 1369 2008-03-11 16:43 Google电子地图\GoogleMapControl\icons\pushpin-blue.png
文件 1233 2008-03-11 16:43 Google电子地图\GoogleMapControl\icons\pushpin-yellow.png
文件 1387 2008-03-17 11:43 Google电子地图\GoogleMapControl\icons\rain.png
文件 1346 2008-03-11 16:44 Google电子地图\GoogleMapControl\icons\recycle.png
文件 6071 2008-03-17 10:55 Google电子地图\GoogleMapControl\icons\RedCar.png
文件 6698 2008-03-17 10:57 Google电子地图\GoogleMapControl\icons\SchoolBus.png
文件 1584 2008-03-17 11:43 Google电子地图\GoogleMapControl\icons\snow.png
文件 1553 2008-03-17 11:43 Google电子地图\GoogleMapControl\icons\storm.png
文件 2189 2008-03-17 11:42 Google电子地图\GoogleMapControl\icons\sun.png
文件 6986 2008-03-17 10:54 Google电子地图\GoogleMapControl\icons\Truck.png
............此处省略79个文件信息
- 上一篇:powerwindow
- 下一篇:文本分类中文语料库
相关资源
- Firebug Lite for Google Chrome
- google earth web api
- google snappy 压缩算法 源码dll 及delphi
- google 20k英文词库大全适合NLP使用
- 将XLS坐标导入到Google地球中的好用工
- google浏览器常用的host文件
- GoogleTakeOutImageDownloader_source.zip
- Qt 控件 实现 QComboBox输入自动提示功能
- Google IO PPT
- excel经纬度导入google earth
- 彻底禁用Chrome插件停用开发者模式提
- Google Hack V2.0
- the YouTube video recommendation system
- GoogleSearchCollector.zip
- Google的protobuf,可以安装
- 全国34个批次259家5A景区KML
- 基于Google Earth三维动画在道路工程中
- com.google.common.collect
- 谷歌官方安装器
- 谷歌地球 google earth pro 安装包
- 谷歌地球中文版Google Earth 7.1.2.2041
- googlenet的synset_words.txt
- bvlc_googlenet.prototxt
- Google翻译2017拓展crx文件
- Google地图瓦片
- google gtest 源码 1.7.0
- Google软件测试之道
-
GeoServer+Openla
yers发布的Google卫星影像 - fonts.googleapis.com的本地包:css和字体
- 谷歌地图定位、搜索与获得点击位置
评论
共有 条评论