|
POST
|
Yes that is very likely. Be sure that the XAML Class definition, <UserControl x:Class=" ArcGISSilverlightSDK.AddLayerDynamically" matches the code-behind namespace and class definition namespace ArcGISSilverlightSDK { public partial class AddLayerDynamically
... View more
12-03-2010
08:08 AM
|
0
|
0
|
1185
|
|
POST
|
Have you tried creating the web request from your web browser? Error 500 is from the Service? It's hard to suggest a fix. I don't understand the problem. Does it work if you don't append "&f=json"?
... View more
12-03-2010
07:30 AM
|
0
|
0
|
2165
|
|
POST
|
I forwarded your question to the REST API team. You can post to their forum too http://forums.arcgis.com/forums/11-ArcGIS-Server-REST-API or go through support http://support.esri.com/en/
... View more
12-02-2010
01:09 PM
|
0
|
0
|
1416
|
|
POST
|
These are related threads: http://forums.arcgis.com/threads/6118-Uploading-a-map-to-an-image http://forums.arcgis.com/threads/17564-Print-map-sample http://forums.arcgis.com/threads/8582-Create-PDF You can put key words in Advanced Search and choose Silverlight/WPF Forum to see if other people have encountered the same issues. It's usually the fastest way to find answers 🙂
... View more
12-02-2010
12:54 PM
|
0
|
0
|
1466
|
|
POST
|
These samples have corresponding VB code. http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#MouseCoords http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddLayerDynamically Were you trying to do both? If you merged the two samples and the Map does not contain any layer, it's Extent must still be null unless you've set it already. You can see this check in the MouseMove event handler. It is therefore only after a layer has been added that screen and map coordinates are retrieved. Also while your mouse is over another control, like the grid that contains TextBlock for adding URL and Button to add the layer, Map MouseMove will not fire. I'm not sure if you were expecting the screen and map coordinates to be updated then.
... View more
12-02-2010
12:48 PM
|
0
|
0
|
1185
|
|
POST
|
You might want to upgrade to v2.1 (if you can use SL4), there had been some bug fixes and other enhancements. What's new in 2.1 http://help.arcgis.com/en/webapi/silverlight/help/index.html#/What_s_new_in_2_1/016600000025000000/ includes this bug fix: When MapTipHideDelay > 0, a MapTip disappears despite cursor still being on top of the MapTip upon initial mouse hover You may be experiencing that the map tip does not remain open on initial mouse over, the succeeding mouse over should be okay. If however, you never see the map tip open at all, then it is a different issue altogether.
... View more
12-02-2010
12:26 PM
|
0
|
0
|
329
|
|
POST
|
I don't think this code will compile Attributes = myFeatureLayer.LayerInfo Attributes is read-only you cannot change this instance but you can modify it's contents by graphic.Attributes["fieldname"] = value; Also the types do not match. Attributes is of type IDictionary<string, object> http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Graphic~Attributes.html and LayerInfo is of type FeatureLayerInfo http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureService.FeatureLayerInfo.html. Post #10 in this thread might help http://forums.arcgis.com/threads/15718-failed-to-show-attribute-window-when-add-new-feature-by-selecting-from-another-layer. Note that this will only work if the field is nullable. I think it's best to know the type of the field and default value for the type. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Field_members.html
foreach (var field in Layer.LayerInfo.Fields)
{
// check field properties here (Editable / Nullable/ Type)
//so you can decide what value to give each attribute
}
By the way, how are you getting "pPointCollection" ? Since you already have a feature layer that updates features in your feature service. Would it not be easier to use TemplatePicker to draw and add the features?
... View more
12-02-2010
11:52 AM
|
0
|
0
|
764
|
|
POST
|
You said that the line will have a default size, right? With the point in the center of the symbol? I think customizing a MarkerSymbol's ControlTemplate will solve the problem. You can look at the SymbolGallery for samples: http://help.arcgis.com/en/webapi/silverlight/samples/SymbolGalleryWeb/start.htm Easiest way is to use ExpressionBlend to see how you want the symbol to look like and then change the properties to bind to Symbol.Size or specific Attribute. This sample might help too: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomSymbols
... View more
12-02-2010
10:45 AM
|
0
|
0
|
1026
|
|
POST
|
I'm not sure I understand your question. Geometry Service do not have features and therefore do not have a concept of saving features. Maybe there's confusion here. You can look at the following documentation: http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//009300000027000000.htm
... View more
12-02-2010
10:38 AM
|
0
|
0
|
764
|
|
POST
|
I understand your dilemma however, this is by design. In .NET, you have to be explicit with which Equals() you are invoking. If you cast the geometry to MapPoint, equality is checked against the points and SpatialReference, otherwise equality is checked against reference.
... View more
12-02-2010
10:31 AM
|
0
|
0
|
1470
|
|
POST
|
Are you talking about IdentifyTask? The following are related threads: http://forums.arcgis.com/threads/6096-How-to-get-the-attributes-from-the-relational-table-by-using-identify http://forums.arcgis.com/threads/14626-Please-help-with-ExecuteRelationshipQueryAsync What you will need to do is get the object ID returned by the Identify, and use that to query your related table.
... View more
12-02-2010
10:20 AM
|
0
|
0
|
557
|
|
POST
|
I think your question is best directed to the ArcGIS Server team. You may find this blog post useful too: http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2010/08/30/Populate-a-combo-box-with-unique-values-using-a-query-layer.aspx
... View more
12-02-2010
10:12 AM
|
0
|
0
|
1496
|
|
POST
|
Thank you for reporting this. I was able to reproduce the issue and found that only MouseLeave event fires when FlareClusterer symbol is used. We apologize for the inconvenience. It is unfortunate that fixing performance issue with Silverlight introduced this new bug. We will try to get this fixed in future releases. For work around, you can subscribe to the MouseEvents on the Map and use FindGraphicsInHostCoordinates.
private void MyMap_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
GraphicsLayer graphicsLayer = MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer;
GeneralTransform generalTransform = MyMap.TransformToVisual(Application.Current.RootVisual);
System.Windows.Point transformScreenPnt = generalTransform.Transform(e.GetPosition(this.MyMap));
var graphics = graphicsLayer.FindGraphicsInHostCoordinates(transformScreenPnt);
}
... View more
12-02-2010
10:08 AM
|
0
|
0
|
810
|
|
POST
|
How about creating a ControlTemplate for your Marker Symbol, that includes TextBlocks, Line and Point? For the TextBlock, you can create your own Converter for the Binding so that value can be transformed to a text with carriage returns. For example, "01" is transformed to "0\n1\n";
... View more
12-02-2010
09:31 AM
|
0
|
0
|
1026
|
|
POST
|
Thank you for reporting this. I was able to reproduce the issue. I found that if you have a MapTipHideDelay and your mouse entered the MapTip, this is when the MapTip remains open. When your mouse does not enter the MapTip, the MapTip hides as it should. We'll try to get this fixed in future releases. What you can do for now is either don't set a MapTipHideDelay or change the MapTip Visibility to Visible on layer's MouseEnter and Collapsed on maptip's container object's (grid) MouseLeave.
... View more
12-02-2010
06:14 AM
|
0
|
0
|
780
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 1 | 09-11-2025 01:30 PM | |
| 1 | 06-06-2025 10:14 AM | |
| 1 | 03-17-2025 09:47 AM | |
| 1 | 07-24-2024 07:32 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|