Hello,
I am getting a strange error with a kml file not displaying after zoom is changed. I have set it up exactly the same way as with other layers which are displaying no problem. Here is my code and i have attached the kml.
Proj4Projection proj_KML = new Proj4Projection();
proj_KML.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326);
proj_KML.ExternalProjectionParametersString = Proj4Projection.GetGoogleMapParametersString();
KmlFeatureLayer kmllayer = new KmlFeatureLayer(@"Data\Efate_GPS.kml");
kmllayer.FeatureSource.Projection = proj_KML;
kmllayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = new AreaStyle(new GeoPen(GeoColor.SimpleColors.Black), new GeoSolidBrush(GeoColor.SimpleColors.Yellow));
kmllayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = new LineStyle(new GeoPen(GeoColor.SimpleColors.Blue, 5));
kmllayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = new PointStyle(PointSymbolType.Circle, new GeoSolidBrush(GeoColor.SimpleColors.BrightRed), 10);
kmllayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
LayerOverlay KMLOverlay = new LayerOverlay();
KMLOverlay.Layers.Add("KmlLayer", kmllayer);
wpfMap1.Overlays.Add("KMLOverlay", KMLOverlay);
wpfMap1.Overlays.MoveToTop("KMLOverlay");
wpfMap1.Refresh();
thanks
Phil
Efate_GPS.zip (369 KB)