POST
|
Yes, the error message is exactly the same as you mentioned. Not sure what should cause this but I might get rid of this issue by adding a group layer and just altering (adding/removing layers to the group layer) the layer collection of the group layer, rather than directly using the remove method on a map layer. I'm yet to confirm this by testing on a device although this works without issues on a visual studio simulator.
... View more
04-02-2015
06:27 AM
|
0
|
0
|
631
|
POST
|
Hi Mike, Thanks for taking time to look into this. Please find the attached txt file with the code snippets where I add and remove the tiles. Few other observations: Adding a try/catch block doesn't help to catch the exception. I have even tried to add a check to see if I can get the layer ID property correctly and only then proceed to remove the tile but that hasn't helped either. So, it looked like a timing issue and therefore I went in and added delays/checked for one layer to be completely unloaded and then proceeded with removing the next one. But, none of these has helped. Strangely, in debug mode if I place a breakpoint on the remove line, it doesn't fail at all. However, when running without debugging, it throws the unhandled exception.When deployed on to a device on release mode, the app crashes. Please let me know if you want me to try any other workflow. Thanks, Suja
... View more
03-31-2015
02:33 AM
|
0
|
2
|
631
|
POST
|
Hi, I'm trying to load some basemap tiles (as individual LocalTiledLayer) based on the current map extent and whist doing that also trying to remove tiles (LocalTiledLayer) which were previously loaded but not in the current map extent. An unhandled exception as shown in Capture1.png is thrown at the MapView.Map.Layers.Remove line. Further digging in Visual Studio watch, looks like the layer itself is not null but none of its properties are accessible (as shown in Capture2.png) which could be the reason for this exception. I could be completely wrong though. This behaviour is quite random as well and can't be reproduced consistently. Any one had this experience? Any input is much appreciated. Thanks.
... View more
03-31-2015
01:41 AM
|
0
|
4
|
4384
|
POST
|
I have a query layer coming from oracle materialized view. I'm trying to generate runtime content directly using ArcMap and share as runtime content. ArcMap crashes without a warning after creating some temp files in my output folder. Please note, my mxd does not have any other layer except a single query layer. I have also tried this using the Create Runtime Content geoprocessing tool and behaviour is exactly the same. Is creating a runtime content from query layer supported in version 10.2.2 or 10.3? Thanks!
... View more
03-09-2015
05:38 AM
|
0
|
0
|
3641
|
POST
|
Hi, Our Silverlight map contains TiledMapServices layer, DynamicMapServices layer , Feature layer, Group layer and few on the fly code generated Graphic layers. We are exploring opportunities to export this map to an interactive pdf. Appreicate ideas on how this can be achieved. Thanks!
... View more
11-15-2012
12:08 AM
|
0
|
0
|
383
|
POST
|
Code snippet below:
Capture click event on the layer:
myGraphicsLayer.MouseLeftButtonUp += new GraphicsLayer.MouseButtonEventHandler(myGraphicsLayer_MouseLeftButtonUp);
void myGraphicsLayer_MouseLeftButtonUp(object sender, GraphicMouseButtonEventArgs e)
{
InfoWindow infowin;
GraphicsLayer gl = (GraphicsLayer)sender as GraphicsLayer;
TextBlock tb = new TextBlock();
tb.Text = "My attribute content";
tb.Margin = new Thickness(2);
tb.FontSize = 14;
//set the info window and its content to the text block (whatever control you are using)
infowin.Map = myMap;
infowin.Anchor = myMap.ScreenToMap(e.GetPosition(myMap));
infowin.Content = tb;
infowin.IsOpen = true;
infowin.Visibility = Visibility.Visible;
//add infowin to the layout
FrameworkElement parent = VisualTreeHelper.GetParent(myMap) as FrameworkElement;
((Grid)parent).Children.Add(infowin);
}
... View more
07-31-2012
07:03 AM
|
0
|
0
|
284
|
POST
|
hi, Yes, I have used InfoWindow which popups on feature mouse click (raised by attaching a mouse click event on the layer). Have used silverlight controls (stackpanel/text block/dock panel,etc) to create the required attribute window which is set as the content of the InfoWindow. This InfoWindow's anchor point is set to the mouse clicked position and then the InfoWindow is added to the visual tree to place it on top of the map. All of this is done in code behind and works very well. The only drawback is it doesn't bring back attributes of multiple features as the standard identify behaviour, only the top layer feature is returned currently. But, I am sure there should be a workaround for which I haven't spent time yet. Cheers.
... View more
07-30-2012
09:35 PM
|
0
|
0
|
284
|
POST
|
Can someone from ESRI confirm if this is a bug? Thanks!
... View more
05-31-2012
01:35 AM
|
0
|
0
|
271
|
POST
|
Hi, I have created a group layer programatically and have populated its childlayers with few graphic layers. When I click on a graphic layer feature to see its attributes, nothing comes up (not even the identify dialog) implying that the Identify behaviour isn't working. Is this a bug? Thanks!
... View more
05-28-2012
05:15 AM
|
0
|
1
|
484
|
POST
|
Thanks Jennifer. I figured that out. When I have a featurelayer, its LayerInfo has all the associated details. Thanks again.
... View more
05-23-2012
07:31 PM
|
0
|
0
|
144
|
POST
|
Have you tried executing this task from the browser through the REST endpoint? Do you get your expected outfields there? Hi, The results from the REST endpoint on browser are exactly the same as I get through the code. Based on this link (http://support.esri.com/en/bugs/nimbus/TklNMDY2NzMx), I am assuming I need to set the input feature set's field definitions as shown in the code block below. Also, I have set all the possible parameters as possible. But, nothing has made any difference. All these are ignored in the output feature class. Code block: FeatureSet featureSet = new FeatureSet(graphicsToSerialize);
featureSet.Fields = metroFLI.Fields;
featureSet.GlobalIdFieldName = metroFLI.GlobalIdField;
featureSet.ObjectIdFieldName = metroFLI.ObjectIdField;
featureSet.DisplayFieldName = metroFLI.DisplayField;
FeatureSet clipFeatureSet = new FeatureSet(GetExtentAsPolygon(_InterfaceFeatureExtent));
Geoprocessor gpTask = new Geoprocessor("http://myarcgisserver/ArcGIS/rest/services/Geoprocess/GPServer/Clip");
gpTask.JobCompleted += new EventHandler<JobInfoEventArgs>(gpTask_JobCompleted);
gpTask.Failed += new EventHandler<TaskFailedEventArgs>(gpTask_Failed);
List<GPParameter> gpParameters = new List<GPParameter>();
gpParameters.Add(new GPFeatureRecordSetLayer("Input_Features", featureSet));
gpParameters.Add(new GPFeatureRecordSetLayer("Clip_Features", clipFeatureSet));
gpTask.ProcessSpatialReference = _Map.SpatialReference;
gpTask.OutputSpatialReference = _Map.SpatialReference;
gpTask.SubmitJobAsync(gpParameters); Code block of Job_Completed event:
void gpTask_JobCompleted(object sender, JobInfoEventArgs e)
{
Geoprocessor gpTask = (Geoprocessor)sender as Geoprocessor;
gpTask.GetResultDataCompleted += new EventHandler<GPParameterEventArgs>(gpTask_GetResultDataCompleted);
gpTask.Failed += new EventHandler<TaskFailedEventArgs>(gpTaskGetResults_Failed);
gpTask.GetResultDataAsync(e.JobInfo.JobId, "Output_Feature_Class", e.UserState);
} Code block of GetResultDataCompleted:
void gpTask_GetResultDataCompleted(object sender, GPParameterEventArgs e)
{
GPFeatureRecordSetLayer resultRecordSet = e.Parameter as GPFeatureRecordSetLayer;
FeatureSet resultFeatureSet = resultRecordSet.FeatureSet;
IList<Graphic> resultGraphics = resultFeatureSet.Features;
} As I said in my previous post, each graphic in my resultGraphics has FID, shape.leng and shape.length as their only attributes ignoring the whole set of attributes that the input_features had. Any further pointers is highly appreciated. Thanks.
... View more
05-23-2012
07:29 PM
|
0
|
0
|
271
|
POST
|
Hi, I need to set Fields property of FeatureSet which is an input parameter for a geoprocessing task. To do that, I need to get the field definitions of the layer. How can I get them? Thanks!
... View more
05-23-2012
06:00 AM
|
0
|
2
|
1805
|
POST
|
Hi, I have published a geoprocessing task (which contains the Extract --> Clip tool) called Clip. When testing the model within the ArcMap, the resulting output feature class has all the attributes of the input feature. However, when I consume the geoprocessing service using Silverlight API, the output features do not have the attributes of the input features. However, the output features have got 3 new attributes as below: FID-new created for each clipped features Shape.Leng - length of the original feature Shape.Length - length of the new clipped feature Why is it missing the original attributes? Attached is my model, what am I missing while publishing this as a geoprocessing service which leaves out the original attributes? Thanks!
... View more
05-23-2012
04:28 AM
|
0
|
4
|
2139
|
POST
|
Hi, I am not getting any user inputs for cutter polyline. I am converting an extent envelope to a polyline object and using that as a cutter polyline. This is done to cut a polyline graphic only to my required extent. However, the cut completed results has got only 1 result which means there was no cut perfomed. Can CutAsync method be used only when user digitizes a polyline as the cutter? I wouldn't assume so, but why is this behaviour? Thanks!
... View more
05-16-2012
11:22 PM
|
0
|
0
|
541
|
POST
|
Hi, I am trying to add a kml layer to my map. However, the control reaches onError handler and shows 'File not found. Wrong Url' error. The Url is correct and I can get back data if I use it on a IE browser. Why should the code fail with this error? Any input is appreciated. Our server isn't accessible from outside. If I see in developer tools where the url is appended to http://utility.arcgis.com/sharing/kml?url=myurl ==> this returns File not found error and I am sure Kml layer isn't getting loaded because of this. But, how should I fix this? Thanks!
... View more
04-25-2012
04:20 AM
|
0
|
2
|
1167
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|