我在用google earth API的ISearchControllerGE的Search()方法查询城市A到城市B的路径,
用GetResults()获取返回的结果,查询后Google Earth上显示出了路径,
可是其中的节点我不能显示在自己的LISTBOX中。
请问有没有哪位大哥做过Google earth 的开发呀,请给点提示呀!谢谢了!
我写的代码如下,请指教: SearchControllerGE scGe = new SearchControllerGEClass(); scGe.Search("from:" + textBox3.Text + " to:" + textBox4.Text);
FeatureCollectionGE ftp = scGe.GetResults();
if (ftp != null)
{
for (int i = 0; i < ftp.Count-1; i++)
{
listBox1.Items.Add(ftp[i].Name);
}
}如果可以,请给我段能够实现功能的DEMO!谢谢
用GetResults()获取返回的结果,查询后Google Earth上显示出了路径,
可是其中的节点我不能显示在自己的LISTBOX中。
请问有没有哪位大哥做过Google earth 的开发呀,请给点提示呀!谢谢了!
我写的代码如下,请指教: SearchControllerGE scGe = new SearchControllerGEClass(); scGe.Search("from:" + textBox3.Text + " to:" + textBox4.Text);
FeatureCollectionGE ftp = scGe.GetResults();
if (ftp != null)
{
for (int i = 0; i < ftp.Count-1; i++)
{
listBox1.Items.Add(ftp[i].Name);
}
}如果可以,请给我段能够实现功能的DEMO!谢谢
http://wenku.baidu.com/view/d322673231126edb6f1a102f.html