Keith Kinnan's Weblog
01-04-2008, 09:27 AM
<P>A new map style was added for the Virtual Earth v6 Map Control API which allows you to have shaded relief maps. For example, here is a screenshot of the traditional road map style (VEMapStyle.Road) in Virtual Earth over the Grand Canyon:</P>
<BLOCKQUOTE>
<P mce_keep="true"><IMG style="WIDTH: 400px; HEIGHT: 300px" height=300 src="http://krkinnan.members.winisp.net/samples/v6/shaded/veroad01.jpg" width=400 mce_src="http://krkinnan.members.winisp.net/samples/v6/shaded/veroad01.jpg"></P></BLOCKQUOTE>
<P>Here is the same location using the new shaded map style:</P>
<BLOCKQUOTE>
<P><IMG style="WIDTH: 400px; HEIGHT: 300px" height=300 src="http://krkinnan.members.winisp.net/samples/v6/shaded/veshaded01.jpg" width=400 mce_src="http://krkinnan.members.winisp.net/samples/v6/shaded/veshaded01.jpg"></P></BLOCKQUOTE>
<P>To use the new Shaded map style, you just need to pass the <STRONG>VEMapStyle.Shaded</STRONG> property to the LoadMap call at init:</P>
<BLOCKQUOTE>
<P>map = new VEMap('myMap');<BR>map.LoadMap(new VELatLong(36.291883, -112.806930), 12, <STRONG>VEMapStyle.Shaded</STRONG>);</P></BLOCKQUOTE>
<P>or you can call SetMapStyle with the shaded property:</P>
<BLOCKQUOTE>
<P>map.SetMapStyle(<STRONG>VEMapStyle.Shaded</STRONG>);</P></BLOCKQUOTE>
<P>Here's a link to a working example showing the new shaded map style:</P>
<BLOCKQUOTE>
<P><A href="http://krkinnan.members.winisp.net/samples/v6/shaded/v6shadedsample.html" mce_href="http://krkinnan.members.winisp.net/samples/v6/shaded/v6shadedsample.html">Virtual Earth API Shaded Map Style Example</A></P></BLOCKQUOTE><img src="http://blogs.msdn.com/aggbug.aspx?PostID=5611252" width="1" height="1">
More... (http://blogs.msdn.com/keithkin/archive/2007/10/22/virtual-earth-api-using-shaded-map-style.aspx)
<BLOCKQUOTE>
<P mce_keep="true"><IMG style="WIDTH: 400px; HEIGHT: 300px" height=300 src="http://krkinnan.members.winisp.net/samples/v6/shaded/veroad01.jpg" width=400 mce_src="http://krkinnan.members.winisp.net/samples/v6/shaded/veroad01.jpg"></P></BLOCKQUOTE>
<P>Here is the same location using the new shaded map style:</P>
<BLOCKQUOTE>
<P><IMG style="WIDTH: 400px; HEIGHT: 300px" height=300 src="http://krkinnan.members.winisp.net/samples/v6/shaded/veshaded01.jpg" width=400 mce_src="http://krkinnan.members.winisp.net/samples/v6/shaded/veshaded01.jpg"></P></BLOCKQUOTE>
<P>To use the new Shaded map style, you just need to pass the <STRONG>VEMapStyle.Shaded</STRONG> property to the LoadMap call at init:</P>
<BLOCKQUOTE>
<P>map = new VEMap('myMap');<BR>map.LoadMap(new VELatLong(36.291883, -112.806930), 12, <STRONG>VEMapStyle.Shaded</STRONG>);</P></BLOCKQUOTE>
<P>or you can call SetMapStyle with the shaded property:</P>
<BLOCKQUOTE>
<P>map.SetMapStyle(<STRONG>VEMapStyle.Shaded</STRONG>);</P></BLOCKQUOTE>
<P>Here's a link to a working example showing the new shaded map style:</P>
<BLOCKQUOTE>
<P><A href="http://krkinnan.members.winisp.net/samples/v6/shaded/v6shadedsample.html" mce_href="http://krkinnan.members.winisp.net/samples/v6/shaded/v6shadedsample.html">Virtual Earth API Shaded Map Style Example</A></P></BLOCKQUOTE><img src="http://blogs.msdn.com/aggbug.aspx?PostID=5611252" width="1" height="1">
More... (http://blogs.msdn.com/keithkin/archive/2007/10/22/virtual-earth-api-using-shaded-map-style.aspx)