Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: Saving and Loading layers as .dspx

$
0
0
Thank you for your reply jany_.

Updating the code as
                foreach(string strSHPFile in strSHPFiles)  //loop through each filename
                {
                    IMapFeatureLayer targetLayer = appManager1.Map.Layers.Add(strDirPath + "\\"  + strSHPFile) as IMapFeatureLayer;
                }
                appManager1.SerializationManager.SaveProject(ofdProject.FileName);
                appManager1.SerializationManager.OpenProject(ofdProject.FileName);
            }
Seems to work. It loads the shapefile, but it does not load any labels I created. Does FeatureLayer.Dataset.SaveAs also save the labels?

Viewing all articles
Browse latest Browse all 3973

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>