MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Virtual Earth API: Setting Altitude of Shapes

This is a discussion on Virtual Earth API: Setting Altitude of Shapes within the Virtual Earth Blogs forums, part of the Blogs category; The Virtual Earth v6 map control API added support for setting altitude of VEShapes in Virtual Earth 3D.  There is ...


Go Back   MapPoint Forums > Blogs > Virtual Earth Blogs

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 01-04-2008
Junior Member
Yellow Belt
 
Join Date: Jan 2008
Posts: 25
Virtual Earth API: Setting Altitude of Shapes

The Virtual Earth v6 map control API added support for setting altitude of VEShapes in Virtual Earth 3D.  There is a new SetAltitude method on VEShape which takes in 2 parameters:



VEShape.SetAltitude(altitude, altitudeMode);


The altitude parameter is the altitude specified in meters.  The altitudeMode parameter is an optional VEAltitudeMode enumeration specifying the mode of the altitude.  If not specified, by default it is VEAltitudeMode.RelativeToGround which is meters above ground level.  You can also specify VEAltitudeMode.Absolute which is meters above the WGS84 ellipsoid.  When the VEShape is a pushpin, the altitude is a single floating point value.  When the VEShape is a polyline or polygon, it is an array of floating point values specifying the altitude for each point in the shape. 


There is also a new SetLineToGround method on the VEShape for polylines and polygon shapes which takes in a boolean to specify whether or not connect the points in the shape to the ground.  By default it is false.


The following sample shows some custom VEShapes at different altitudes.  It also demonstrates a polygon with points at different altitudes and the line to ground functionality:



Virtual Earth API Shape Altitude Sample


 



More...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
altitude, api, setting, shapes, virtual earth


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/virtual-earth-api-setting-altitude-shapes-6961.html

Posted By For Type Date
Merging Multiple Routes - MapPoint Articles - MP2K Magazine This thread Refback 01-08-2008 04:05 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Virtual Earth V6 - QFE VirtualEarth MSDN Blog Virtual Earth Blogs 0 12-22-2007 03:54 PM
Virtual Earth News from GEOINT 2007: Virtual Earth Appliance VE For Government Virtual Earth Blogs 0 10-24-2007 01:10 PM
Virtual Earth @ WPC VirtualEarth MSDN Blog Virtual Earth Blogs 0 09-15-2007 03:17 PM
MSN Virtual Earth. Eric Frost News and Announcements 0 11-03-2006 12:27 PM
Setting up ajoining shapes to form a print grid CSG MapPoint 2006/2009 Discussion 0 04-01-2004 11:57 AM


All times are GMT -5. The time now is 07:08 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55