Need help with KML

Last post 3/17/2009 11:08:05 PM by Chris Pietschmann. 2 replies. << Back to Web.Maps.VE v2.0 General
3/13/2009 2:03:23 PM
abgibbs

Need help with KML

Can you please provide an example on how to load a KML file as a layer onto the VE web control, I'm having a hard time figuring it out. I checked the sample website and tried using the TileLayer.aspx example (providing my KML as the TileSource) but no luck. How can I do this? Thanks, Aaron
3/17/2009 9:18:34 PM
abgibbs

Re:Need help with KML

*BUMP PLEASE*
3/17/2009 11:08:05 PM
Chris Pietschmann

Re:Need help with KML

The method for importing KML files as a Shape Layer is similar to importing GeoRSS files. Try the following example to import your KML file:

var shapeSource = new ShapeSourceSpecification(DataType.ImportXML, "KML File URL");
Map1.ImportShapeLayerData(shapeSource, true);