Welcome to MSDN Blogs Sign in | Join | Help

Virtual Earth Map Control now supports KML!!!

Databinding to KML has to be one of the top requested features I hear when I speak to people about VE.  The good news is that I can now tell people YES when they ask about it!!!  The VE team released a Quick Fix Engineering (QFE) update to Virtual Earth that included some enhancements to the v6 map control (more here).  So how does it work?  The VEDataType enumeration has been updated.  All you need is a slight tweak to the same code you would use for GeoRSS.

 

map = new VEMap('myMap'):

map.LoadMap(new VELatLong(46.3081, -122.1928), 12);

var l = new VEShapeLayer();

var veLayerSpec = new VEShapeSourceSpecification(VEDataType.ImportXML, "YourKmlFileHere.kml", l);

map.ImportShapeLayerData(veLayerSpec, onFeedLoad);

I have not tried it out myself.  I don't have many KML sources:).  Try it out with yours!

 

-Marc

Technorati Tags: ,,,
Published Thursday, December 27, 2007 1:52 PM by Public Sector DPE Team

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Geek Lectures - Things geeks should know about » Blog Archive » Virtual Earth Map Control now supports KML!!!

# Microsoft Virtual Earth supports KML

Friday, January 18, 2008 8:41 AM by ...

Microsoft Virtual Earth supports KML

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker