프로그래밍 방식으로 Bing Maps (Virtual Earth)에 3D 모양을 추가합니다.
-
19-09-2019 - |
문제
빙 맵 (가상 지구)에 3D 모양을 프로그래밍 방식으로 추가하려면 어떻게해야합니까?
해결책
다음은 도움이되는 몇 가지 코드입니다.
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);
자세한 내용은 다음을 참조하십시오.
Velatlong 클래스
Veshape 클래스
추가 셰이프 방법
제휴하지 않습니다 StackOverflow