var localCenterlineServiceMPK = new LocalFeatureService() { Path = @"C:\package1.mpk", MaxRecords = 100000 }; ArcGISLocalFeatureLayer lineLayer = null; localCenterlineServiceMPK.Start(); lineLayer = new ArcGISLocalFeatureLayer { Url = localCenterlineServiceMPK.UrlFeatureService + "/0", Service = localCenterlineServiceMPK, ID = "lines", LayerName = "lines", Editable = true, DisableClientCaching = true, AutoSave = false, Mode = FeatureLayer.QueryMode.Snapshot, OutFields = new OutFields { "*" } }; var localCenterlineServiceMPK2 = new LocalFeatureService() { Path = @"C:\package2.mpk", MaxRecords = 100000 }; ArcGISLocalFeatureLayer lineLayer2 = null; localCenterlineServiceMPK2.Start(); lineLayer2 = new ArcGISLocalFeatureLayer { Url = localCenterlineServiceMPK.UrlFeatureService + "/0", Service = localCenterlineServiceMPK, ID = "lines", LayerName = "lines", Editable = true, DisableClientCaching = true, AutoSave = false, Mode = FeatureLayer.QueryMode.Snapshot, OutFields = new OutFields { "*" } }; this.MyMap.Layers.Add(lineLayer); this.MyMap.Layers.Add(lineLayer2);
Solved! Go to Solution.
Hi,
Which version are you using? This was fixed in v10.2 I believe, although 10.2.2 is the latest release.
Cheers
Mike
Well, I just installed the version 10.2.2 but the behavior is the same, it only unpack to one folder.
Well, I just installed the version 10.2.2
but the behavior is the same, it only unpack to one folder. 😞
the second layer includes the information saved in the first one.....Any suggested workaround?
Hi,
Why are you creating two services from the same package?
Cheers
Mike