AnsweredAssumed Answered

KML string to KmlLayer

Question asked by jasonMDSP on Aug 4, 2015
Latest reply on Aug 4, 2015 by jasonMDSP

I've seen that similar questions have been asked, bust most of them are over a year old. Is there a way to add a KmlLayer from a KML string or a local file?

 

I tried the following, but it only works when file is a url.

 

string file = @"C:\devel\test.kml";
KmlLayer kmlLayer = new KmlLayer(new Uri(file));
MyMapView.Map.Layers.Add(kmlLayer);

Outcomes