- 浏览: 406089 次
- 性别:
- 来自: 郑州
文章分类
最新评论
-
yan789654100:
先谢谢了,去研究一下
Java网络围棋游戏源码含大厅,仿QQ游戏 -
dan0773:
火狐里面用不了
梅花雨日历控件源码,及应用实例 -
左手边:
挺好的不错
Velocity教程 -
liuxuejin:
既然是教程,连个例子都没有!顶多是个笔记而已
Velocity教程 -
sky_pearl:
泪奔……求大厅代码!!!
Java网络围棋游戏源码含大厅,仿QQ游戏
Google Earth Hello World 示例
<html> <head> <title>Hello Google Earth!</title> <!-- *** Replace the key below below with your own API key, available at http://code.google.com/apis/maps/signup.html *** --> <script src="http://www.google.com/jsapi?key=ABQIAAAA4ZZxnijCQhlZlf57igoGExTwM0brOpm-All5BF6PoaKBxRWWERR0mYEVnCnlZi8Qmoq3uoivZ9cIgQ";></script> <script> //google.load("earth", "1"); google.load('earth', '1'); var ge = null; /** Init */ function init() { google.earth.setLanguage('zh_CN'); google.earth.createInstance("map3d", initCallback, failureCallback); } /* Call Back */ function initCallback(object) { ge = object; /* LAYER_BORDERS - shows country and area borders, and place labels for cities, states, countries, oceans, etc LAYER_BUILDINGS - 3D buildings LAYER_BUILDINGS_LOW_RESOLUTION - grey buildings (non-photorealistic). Note that this does not contain copies of photorealistic buildings; rather, it includes buildings that do not yet exist in the photorealistic buildings layer. As photorealistic versions of grey buildings are created, the buildings will be added to LAYER_BUILDINGS and removed from LAYER_BUILDINGS_LOW_RESOLUTION. LAYER_ROADS - displays roads and road names LAYER_TERRAIN - 3D terrain LAYER_TREES - 3D tree models */ ge.getLayerRoot().enableLayerById(ge.LAYER_BORDERS, true); ge.getLayerRoot().enableLayerById(ge.LAYER_BUILDINGS, true); ge.getLayerRoot().enableLayerById(ge.LAYER_BUILDINGS_LOW_RESOLUTION, true); ge.getLayerRoot().enableLayerById(ge.LAYER_ROADS, true); ge.getLayerRoot().enableLayerById(ge.LAYER_TERRAIN, true); ge.getLayerRoot().enableLayerById(ge.LAYER_TREES, true); /* ge.VISIBILITY_SHOW ge.VISIBILITY_HIDE ge.VISIBILITY_AUTO */ ge.getNavigationControl().setVisibility(ge.VISIBILITY_AUTO); //parseKmlString(ge); ge.getWindow().setVisibility(true); } function parseKmlString(ge){ var kmlString = '' + '<?xml version="1.0" encoding="UTF-8"?>' + '<kml xmlns="http://www.opengis.net/kml/2.2">' + '<Document>' + ' <Camera>' + ' <longitude>-122.444633</longitude>' + ' <latitude>37.801899</latitude>' + ' <altitude>139.629438</altitude>' + ' <heading>-70.0</heading>' + ' <tilt>75</tilt>' + ' </Camera>' + ' <Placemark>' + ' <name>Placemark from KML string</name>' + ' <Point>' + ' <coordinates>-122.448425,37.802907,0</coordinates>' + ' </Point>' + ' </Placemark>' + '</Document>' + '</kml>'; var kmlObject = ge.parseKml(kmlString); ge.getFeatures().appendChild(kmlObject); } /*CallBack*/ function failureCallback(object) { } var placemark = ge.createPlacemark(''); placemark.setName("You are at Google"); ge.getFeatures().appendChild(placemark); // Create style map for placemark var normal = ge.createIcon(''); normal.setHref('http://maps.google.com/mapfiles/kml/paddle/red-circle.png'); var iconNormal = ge.createStyle(''); iconNormal.getIconStyle().setIcon(normal); var highlight = ge.createIcon(''); highlight.setHref('http://maps.google.com/mapfiles/kml/paddle/red-circle.png'); var iconHighlight = ge.createStyle(''); iconHighlight.getIconStyle().setIcon(highlight); var styleMap = ge.createStyleMap(''); styleMap.setNormalStyle(iconNormal); styleMap.setHighlightStyle(iconHighlight); placemark.setStyleSelector(styleMap); // Create point var la = ge.getView().copyAsLookAt(ge.ALTITUDE_RELATIVE_TO_GROUND); var point = ge.createPoint(''); point.setLatitude(la.getLatitude()); point.setLongitude(la.getLongitude()); placemark.setGeometry(point); </script> </head> <body onload='init()'; <div> He Nan Qi Xiang </div> <div id='map3d_container' style='border: 1px solid silver; height: 600px; width: 800px;'> <div id='map3d' style='height: 100%;'></div> </div> </body> </html>
发表评论
-
Extjs 验证使用
2012-08-10 10:16 952/** * 用户表单面板 */ Ext.def ... -
使用ext的store.load 之后然后使用store.getCount 值为零解决办法
2012-07-13 09:12 1172使用ext的store.load(),之后然后使用store. ... -
什么样的cms系统算是强大
2012-07-10 17:41 954现在建站的cms系统层出不穷。从简单的到功能复杂的。从功 ... -
OpenCV背景去除的几种方法(转)
2012-07-02 10:15 8543OpenCV背景去除的几种方法 1、肤色侦测法 肤 ... -
error: command 'mt.exe' failed with exit status 31
2012-06-18 17:39 2373python setup.py build_ext -i ... -
MyBatis 3 + Spring3 多数据源配置
2012-02-27 14:50 1347详细内容地址: 终于把 MyBatis 3 和 Sp ... -
DB2 分页查询方法,查询top N 条记录
2011-01-13 18:50 27091. db2分页查询sql select * f ... -
Birt 中的通过Script加入调试输出SQL语句代码
2010-11-18 15:54 1364用Brit制作报表时可通过在Script脚本中加入以下代码输出 ... -
TSM - Creating an include-exclude list (optional)
2010-06-09 11:00 1521Creating an include-exclude l ... -
TSM - Configuring the Web client
2010-06-09 10:51 890Configuring the Web client The ... -
Linux下 Tsm 服务器、客户端安装配置全过程
2010-05-17 10:06 1716系统环境:LINUX AS5 存储:IBM DS400 ... -
安装DB2补丁步骤
2009-10-27 17:30 17281. 通过运行 su - root ... -
WAS 6.0.2.9 部署应用使用过滤器问题解决办法
2009-08-05 16:07 1402支撑环境: IBM WebSphere Application ... -
MyEclipse5.5GA配置Websphere V6.1 全过程(详细版)
2009-07-16 13:32 1248转载自:http://blog.chinaunix.net/u ... -
WebSphere Application Server 6.0.2.9 配置 SqlServer 2000 SP2时出错问题解决
2009-07-15 12:56 1757WebSphere Application Server 6. ... -
WAS 5.1 部署应用容器属性配置
2009-07-07 14:52 2492WAS 5.1 部署应用容器属性配置 引用地址:http:/ ... -
Struts JSR168 Portlet using the ITIM API
2009-06-02 19:29 952Leveraging the IBM Tivoli Ident ... -
ITIM API
2009-06-02 19:22 910ITIM API http://publib.boulder ... -
打开IBM WebSphere Portal trace 收集
2009-05-26 10:37 1394Collecting login-specific infor ... -
解决HP-UX 11iv3 nfs 共享时无法写文件问题方法
2009-05-14 17:21 1895解决在两台HP小机上用SAM 配置的NFS 共享之后,moun ...
相关推荐
Google Earth API开发,Google Earth API开发Google Earth API开发Google Earth API开发
Google Earth开发过程的一些笔记,可以帮助新手Google Earth开发入门。
Google Earth和World Wind比较研究.pdf
调用GOOGLE EARTH COM 开发的示例程序,希望大家能够提出更多宝贵的意见
google earth二次开发教程,相信对你有帮助。
2017年我刚入职现在的公司,需要搞三维地图,我把目光移到谷歌地球API上,然后...通过一系列排列组合,“Hello Earth!”居然被我给折腾出来了。心路历程详见:https://my.oschina.net/HangXiaoZhuOSZone/blog/910697
适合google earth 二次开发入门
本书从易到难、由浅入深、循序渐进地介绍了Google Maps API和Google Earth API的开发技术。本书知识讲解通俗易懂,并有大量的实例供读者更加深刻地巩固所学习的知识,帮助读者更好地进行开发实践。 本书共分为18...
matlab开发-GoogleEarth。使用matlab通过google earth api控制google earth的示例。
本书从易到难、由浅入深、循序渐进地介绍了Google Maps API和Google Earth API的开发技术。本书知识讲解通俗易懂,并有大量的实例供读者更加深刻地巩固所学习的知识,帮助读者更好地进行开发实践。 本书共分为18...
gogle earth 开发的基础参考,本文主要是讲windows 程序以COM接口开发gogle earth ,附vc vb代码
Google Earth二次开发制图接口设计与实现,杨鑫,郑新奇,对Google Earth进行二次开发将其与GIS软件进行整合是进一步扩展Google Earth应用、充分挖掘Google Earth潜能的重要途径,而在Google Earth视图窗口
对GoogleEarth WorldWind 的性能进行对比,对其进行GIS开发的可行性进行阐述
GoogleEarth GoogleEarth GoogleEarth
Google地图定位-C#中winform开发的地图定位 可以定位经纬度或是通过经纬度查找地址 也可以查询两个经纬度间的球面距离 还有路线搜索,程序需要电脑上安装有Google Earth相关程序和插件。
一个简单的WinCE 入门示例程序,对于初学者有一定的帮助和借鉴作用。
这里提供一个利用VS2005 + Google Earth 5.0开发一个调用程序。首先,确保已经正确安装GE,打开VS2008 ,新建一个Windows应用程序项目,在“项目”菜单中选择“添加引用…”,切换到“COM”选项卡,选择“Google ...
适用于GoogleEarth连接不到服务器的情况,将C:\Windows\System32\drivers\etc下的文件替换即可
《Google API开发详解》书中Google Earth部分的地图定位源程序
asp.net下进行google二次开发。