以編程方式向Bing地圖添加三維圖形(虛擬地球)

[英]Programmatically add 3-D shapes to Bing Maps (Virtual Earth)


How can I programmatically add 3-D shapes to Bing Maps (Virtual Earth)?

如何在Bing地圖(虛擬地球)中添加3d圖形?

1 个解决方案

#1


1  

Here's some code that should help you:

下面是一些幫助你的代碼:

var map = new VEMap('map_div_id');

// Put you points together and into an array, the 10.0 below is meters above the ground
var point1 = new VELatLong(45.01188,-111.06687, 10.0);
var point2 = new VELatLong(45.01534,-104.06324, 10.0)
var point3 = new VELatLong(41.01929,-104.06, 10.0);
var point4 = new VELatLong(41.003,-111.05878, 10.0);
var points = [point1, point2, point3, point4, point1];

var shape = new VEShape(VEShapeType.Polygon, points);
map.AddShape(shape);

See the following for more information:
VELatLong Class
VEShape Class
AddShape Method

有關更多信息,請參見以下內容:VELatLong類VEShape類AddShape方法


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2009/08/24/72601cb5c6c8179faedfe013cde4059f.html



 
粤ICP备14056181号  © 2014-2021 ITdaan.com