C# 使用c中的GEPlugin KmlCamera#

C# 使用c中的GEPlugin KmlCamera#,c#,winforms,google-earth-plugin,C#,Winforms,Google Earth Plugin,我可以让Google Earth插件在我的C#windows窗体中工作,但我想问一下如何让“摄像头”将地球变成我提供的水平和长度 有没有人知道该调用哪个方法,或者是否有关于使用C#控制google earth的文章 您可以使用我创建的这个控件库来使用托管代码中的Google Earth Api 该库允许您像在javascript中一样使用api—它还具有帮助函数,可以轻松地在api中创建对象和处理事件 仅供参考,要设置和使用摄像头,您可以这样做 // where ge is an instan

我可以让Google Earth插件在我的C#windows窗体中工作,但我想问一下如何让“摄像头”将地球变成我提供的水平和长度


有没有人知道该调用哪个方法,或者是否有关于使用C#控制google earth的文章

您可以使用我创建的这个控件库来使用托管代码中的Google Earth Api

该库允许您像在javascript中一样使用api—它还具有帮助函数,可以轻松地在api中创建对象和处理事件

仅供参考,要设置和使用摄像头,您可以这样做

// where ge is an instance of GEPlugin.
var camera = ge.getView().copyAsCamera(ge.ALTITUDE_RELATIVE_TO_GROUND);

// set latitude and longitude
camera.setLatitude(36.584207);
camera.setLongitude(-121.754322);

// for a list of all the KmlCamera members see:
// http://code.google.com/apis/earth/documentation/reference/interface_kml_camera.html

// update the view
ge.getView().setAbstractView(camera);
但是我建议使用图书馆