|
POST
|
Output Spatial Reference is one of the parameters in AddressToLocationAsync. Kindly see this documentation: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.AddressToLocationsParameters_members.html It is supported already, you just need a service that supports it (ArcGIS Server v10 and up) 🙂
... View more
11-17-2010
12:05 PM
|
0
|
0
|
1004
|
|
POST
|
Have you tried setting these properties? http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map~MinimumResolution.html http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map~MaximumResolution.html
... View more
11-16-2010
10:50 PM
|
0
|
0
|
1104
|
|
POST
|
Check ZoomToResolution from this page: http://help.arcgis.com/en/webapi/silverlight/help/Navigating_map.htm After the tiled layer has initialized, you will have TileInfo, Lods and their respective resolution. You can pick the desired Lod.Resolution and use this for comparison with Map.Resolution on Map.ExtentChanging event. Alternatively, if you already know the extent for the desired Lod.Resolution you can add ConstrainExtentBehavior http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ConstrainExtentBehavior
... View more
11-16-2010
03:45 PM
|
0
|
0
|
1104
|
|
POST
|
Thank you for reporting this. We will try to get this fixed in future releases.
... View more
11-16-2010
03:12 PM
|
0
|
0
|
1099
|
|
POST
|
If you will be using v2.1, executing CancelActive command of the Editor will undo changes made by the EditVertices command if it were the current active command. Reshape, Cut and Union, however are done through GeometryService and are committed right away if you have AutoSave=true. I suggest setting AutoSave=false, listen to Editor's EditCompleted event and see if the EditAction is Reshape/Cut/Union/EditVertices. You will have access to the Graphic that was modified and the layer it belongs to at this point. Therefore you can check whether this is the desired geometry change, before committing the changes to your server by calling layer.SaveEdits().
... View more
11-16-2010
03:08 PM
|
0
|
0
|
1151
|
|
POST
|
Oh, the code snippet and documentation I provided is for FeatureLayer, where ObjectIDField will be known after the layer is Initialized and LayerInfo is retrieved. How are you saving the graphic to your database? How is the object ID created? Do you save the object id as part of the attributes? If yes, then however you named this field, is also the key you used in getting the attribute value. Same code snippet as my previous post, except you replace the key "layer.LayerInfo.ObjectIdField" with your own name for your object id.
... View more
11-16-2010
02:18 PM
|
0
|
0
|
1773
|
|
POST
|
Check that Binding statements are correct, provide a Fallback value if you want to know whether the binding failed. For example: "{Binding [STATE_NAME], FallbackValue = 0}" This will fail if the graphic Attributes do not include STATE_NAME as one of its fields.
... View more
11-16-2010
12:49 PM
|
0
|
0
|
558
|
|
POST
|
Kindly refer to this documentation: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureService.FeatureLayerInfo~ObjectIdField.html If LayerInfo is retrieved after the layer has initialized so be sure to check that layer.LayerInfo is not null. The following code retrieves the feature ID: var id = graphic.Attributes[layer.LayerInfo.ObjectIdField];
... View more
11-16-2010
12:41 PM
|
0
|
0
|
1773
|
|
POST
|
How about initializing the ArcGISDynamicMapServiceLayer in code, subscribe to its Initialized event, call Initialize(). At it's Initialized event handler, retrieve the sublayer Name and ID information. Save this info onto a dictionary with Name as Key and ID as value. Once you are given the sub layer name, you can get the corresponding ID from this dictionary and append it to the ArcGISDynamicMapServiceLayer URL so you can run your query against it. The ArcGISDynamicMapServiceLayer in this case is not added to your map but is Initialized and used to get its sub layers.
... View more
11-16-2010
07:30 AM
|
0
|
0
|
1197
|
|
POST
|
I don't know the use case why you would transform a polygon to a polyline geometry. But like Dominique had suggested, you can get the PointCollection per ring of the polygon, and create a path for the polyline with the same PointCollection. The number of Rings in your polygon (source geometry) must match the number of Paths in your polyline (target geometry), the content of each ring must match the content of each path.
... View more
11-16-2010
07:23 AM
|
0
|
0
|
636
|
|
POST
|
You are returning 1000 features, right? Do you wait awhile to see if they go to Initialized method? Do you get 1000 features as expected? Both modes should work. I tried it with your code. However I didn't have your Renderer code. Without the renderer, do you see the features drawn? You confirm that the features do come back right but are not drawn?
... View more
11-16-2010
05:02 AM
|
0
|
0
|
1656
|
|
POST
|
Thank you for sharing us your findings. We are continuously looking on improving this part of our API. There had already been good improvements since RC that you will see in Final.
... View more
11-16-2010
04:58 AM
|
0
|
0
|
989
|
|
POST
|
Oh you don't mean x:Name? If you mean name defined in the service, you can probably keep them in a dictionary (if you know that names will be unique), with URL as the value. You can add to the dictionary as each layer is initialized. For the main layer, you can use MapName. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~MapName.html For the sub layers, you can use LayerInfo.Name and append the sub layer ID to the main layer's URL. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.LayerInfo~Name.html For FeatureLayer, it's similar. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureService.FeatureLayerInfo_members.html These information are available after the layer has initialized.
... View more
11-16-2010
04:49 AM
|
0
|
0
|
2599
|
|
POST
|
This seems like a related thread, kindly see: http://forums.arcgis.com/threads/8774-save-layer-to-xml-file While you will not be saving an entire layer to XML, the idea is the same, instead of layer.Graphics you will be using ESRI.ArcGIS.Client.Tasks.QueryEventArgs args.FeatureSet.FeatureSet.
... View more
11-15-2010
11:17 AM
|
0
|
0
|
1060
|
|
POST
|
Is there a reason why you don't want to set the ID of the layer? You can get the layer based on ID or index. Map.Layers[LayerID] or Map.Layers[index]
... View more
11-15-2010
11:12 AM
|
0
|
0
|
2599
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 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 |
a week ago
|