项目中用到了Google earth二次开发,现在把搜集的资料进行了一下整理。供大家参考

1、安装google earth,我用的是4.2的版本

2、制作控件,封装google earth API,同时加入windows API,来将google earth的窗口嵌入在 控件中。

代码如下:

      

Code

 

4、使用控件

 

Code

 

这个控件还是个雏形,还有很多方面没有考虑,比如说google earth的销毁等。