|
POST
|
The difference between this two Equals() is that the first uses the default Equals() when comparing two objects http://msdn.microsoft.com/en-us/library/bsc2ak47(v=VS.95).aspx and the second uses API definition for Equals() when comparing two MapPoints http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.MapPoint~Equals(MapPoint).html.
... View more
12-01-2010
02:26 PM
|
0
|
0
|
1469
|
|
POST
|
FeatureSymbol is used when the FeatureLayer (regardless if it comes from Feature Service or Map Service) does not already have a Renderer. You can define the Renderer in the service itself or in the application. The help doc in my previous post describes how it's done on the service. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.GraphicsLayer~Renderer.html Here's a sample how Renderer can be defined in your application: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerRendering
... View more
12-01-2010
02:02 PM
|
0
|
0
|
1143
|
|
POST
|
You can look at this help doc http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Authoring_feature_services/009300000021000000/ There is a section on defining symbology.
... View more
12-01-2010
09:24 AM
|
0
|
0
|
1143
|
|
POST
|
I am confused. Are you using ConstrainExtentBehavior? http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client.Behaviors~ESRI.ArcGIS.Client.Behaviors.ConstrainExtentBehavior.html What type of layer are you using? Is FullExtent a property of this layer or is it the behavior? FullExtent in the layers is of type Envelope. Have you checked these values in debug mode? Does your map respect this constrain? I don't see why you will have a problem "zooming in." If you try this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ConstrainExtentBehavior. The ConstrainExtent does not allow you to zoom out further than the given constrain, but it allows you to zoom in. I would upgrade to v2.1 but I also want to understand the problem.
... View more
12-01-2010
09:06 AM
|
0
|
0
|
2305
|
|
POST
|
The FeatureDataForm or FeatureDataGrid display fields as "read-only" if the service have marked them as Editable=false. They use OutFields property to know which fields to display to the user. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer~OutFields.html You should still be able to edit "CUST_FID" if it is a field in your layer. graphic.Attributes["CUST_FID"] = GetUniqueID(); //this works but because "CUST_FID" is not part of your OutFields, it's current value will not be returned and FeatureDataForm will not display this field.
... View more
12-01-2010
08:35 AM
|
0
|
0
|
1090
|
|
POST
|
API v1.2 uses WPF Toolkit v3.5.50211.1. You may be right that the version mismatch may cause this issue.
... View more
12-01-2010
08:33 AM
|
0
|
0
|
1168
|
|
POST
|
Oh, if ID=5 returns the correct layer, then I really don't know what could be wrong with ID=6. Have you tried using the same parameters on your web browser? Same error? If yes, I can only suspect that there's something wrong with that layer.
... View more
12-01-2010
07:35 AM
|
0
|
0
|
1414
|
|
POST
|
Another solution is to create your own RotatingTextSymbol by inheriting from MarkSymbol. Add new DependencyProperty for Text, HorizontalAlignment, and Angle. Create the ControlTemplate such that it contains a TextBlock with RotateTransform. You can bind the TextBlock's Text and HorizontalAlignment to the Symbol's Text and HorizontalAlignment properties. Similarly, you can bind the RotateTransform's Angle to the Symbol's Angle.
... View more
11-30-2010
04:47 PM
|
0
|
0
|
917
|
|
POST
|
Here's what I've gathered - You need to fix your service and have every ID match their index. I was told that top:5 may actually be accessing ID=6, that's why it worked and top:6 is trying to access ID=7, which is already out of bound... as caused by the broken layer (ID=1). ID=1 may be missing because it was not published but is still contained in your ArcMap Table of Contents. You can either delete layer with ID=1 from ToC or include it and re-publish.
... View more
11-30-2010
02:25 PM
|
0
|
0
|
1414
|
|
POST
|
I have not tried this myself but I think this would work: When building the Xaml string in GetSymbol(), instead of relying on DataContext Binding, you can get the actual attribute value for the given graphic. Something like:
StringBuilder sb = new StringBuilder();
//more code here
sb.Append(string.Format("<TextBlock Text=\"{0}\"/>", graphic.Attributes["label"]));
... View more
11-30-2010
02:12 PM
|
0
|
0
|
851
|
|
POST
|
Kindly look at post #10 in http://forums.arcgis.com/threads/16305-Attribute-Query-Task-Question
... View more
11-30-2010
01:22 PM
|
0
|
0
|
1495
|
|
POST
|
LayerOption, by default is Top. You can specify this in the IdentifyParameters http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.IdentifyParameters~LayerOption.html I have to check with the ArcGIS Server team about the Index out of bounds error. I'll get back with you on that.
... View more
11-30-2010
12:31 PM
|
0
|
0
|
1414
|
|
POST
|
I think GraphicsLayer is more powerful than ElementLayer. I cannot think of anything you can do with ElementLayer that you cannot do with GraphicsLayer but I cannot say the same for the reverse. You can look at the members and methods for the two to better compare them. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.GraphicsLayer_members.html http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ElementLayer_members.html But you are right about the ease for Drag and Drop with ElementLayer since it is dealing with FrameworkElement already and GraphicsLayer contain FrameworkElement in the symbol. Here's an example of Drag and Drop with GraphicsLayer (http://alpascual.com/post/adding-images-on-silverlight-4-using-drag-and-drop-and-the-web-camera.aspx) but the direction is to the map, not from the map. It really is your choice to make, whatever best suits your need 🙂
... View more
11-30-2010
12:28 PM
|
0
|
0
|
478
|
|
POST
|
Map.Resolution is doubleNaN when there are no layers or Extent is not set or ActualWidth is 0.
... View more
11-30-2010
12:04 PM
|
0
|
0
|
952
|
|
POST
|
I asked around. ElementLayer and GraphicsLayer do not have much difference in performance as far as we know. GraphicsLayer should be sufficient.
... View more
11-30-2010
10:52 AM
|
0
|
0
|
2111
|
| 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 |
2 weeks ago
|