POST
|
Add that line before MapApplication.Current.Map.Layers.Add(layer); In my code specifically, it was done at 3 places. Hope that helps! Regards, Samit Chakraborty
... View more
02-27-2012
09:06 AM
|
0
|
0
|
383
|
POST
|
Setting it to an empty string did not work. Any other solution found as on date? I tried this but it didn't work. parameters.Add(new GPFeatureRecordSetLayer("Input_Point", ""));
... View more
02-22-2012
03:56 AM
|
0
|
0
|
116
|
POST
|
This fixed the problem! layer.SetValue(MapApplication.LayerNameProperty, layer.ID);
... View more
02-16-2012
03:05 AM
|
0
|
0
|
383
|
POST
|
Hi, I am trying to add FeatureLayer, ArcGISDynamicMapServiceLayer, and ArcGISTiledMapServiceLayer programmatically through code. However although the services get added, I am unable to see their IDs. Attached is a screenshot (IDs not displaying1.jpg). Is this a bug with ArcGIS API for Sharepoint 2.1.1? The code I am using used to work perfectly fine with ArcGIS API for Sharepoint 2.0, that is the ID for each service would appear. Code I am using is below (Note: I am setting the ID property everywhere):- if (((SecuredServiceList)(lstBox.Items[index])).Tick == true && ((SecuredServiceList)(lstBox.Items[index])).LayerType == "FeatureLayer") { FeatureLayer layer = new FeatureLayer() { Url = ((SecuredServiceList)(lstBox.Items[index])).Name, ID = ((SecuredServiceList)(lstBox.Items[index])).ID, ProxyUrl = proxyurl }; layer.Where = "1=1"; layer.OutFields.Add("*"); layer.InitializationFailed += layer_InitializationFailed; MapApplication.Current.Map.Layers.Add(layer); } if (((SecuredServiceList)(lstBox.Items[index])).Tick == true && ((SecuredServiceList)(lstBox.Items[index])).LayerType == "RasterLayer" && ((SecuredServiceList)(lstBox.Items[index])).ContainsTileInfo == true) { ArcGISTiledMapServiceLayer layer = new ArcGISTiledMapServiceLayer() { Url = ((SecuredServiceList)(lstBox.Items[index])).Name, ID = ((SecuredServiceList)(lstBox.Items[index])).ID, ProxyURL = proxyurl }; layer.InitializationFailed += layer_InitializationFailed; MapApplication.Current.Map.Layers.Add(layer); } if (((SecuredServiceList)(lstBox.Items[index])).Tick == true && ((SecuredServiceList)(lstBox.Items[index])).LayerType == "RasterLayer" && ((SecuredServiceList)(lstBox.Items[index])).ContainsTileInfo == false) { ArcGISDynamicMapServiceLayer layer = new ArcGISDynamicMapServiceLayer() { Url = ((SecuredServiceList)(lstBox.Items[index])).Name, ID = ((SecuredServiceList)(lstBox.Items[index])).ID, ProxyURL = proxyurl }; layer.InitializationFailed += layer_InitializationFailed; MapApplication.Current.Map.Layers.Add(layer); } Has anyone faced a similar problem and come up with a resolution? Thanks. -- Samit
... View more
02-16-2012
01:08 AM
|
0
|
4
|
1921
|
POST
|
Is there a way to change the glow surrounding the default symbol? Please see attachment. I would like to give the end user an option to change the color of the glow and/or any effects applied to the symbol.
... View more
02-14-2012
03:48 AM
|
0
|
0
|
2842
|
POST
|
Is there a way to change the glow surrounding the default symbol? Please see attachment. I would like to give the end user an option to change the color of the glow and/or any effects applied to the symbol.
... View more
02-14-2012
03:46 AM
|
0
|
0
|
299
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|