|
POST
|
Jannifer, thanks for your help. AutoSave is set for my featureLayer. When calling editor's EditCompleted event, the graphic is saved already. I cannot stop save by writing any code in it.
... View more
11-17-2010
09:55 AM
|
0
|
0
|
708
|
|
POST
|
In my arcGIS API 2 for siliverlight application which uses ArcGIS server 10 services, I use editing tool to add new, edit graphics like Reshape,cut, union and editVertix. I need a tool/function to cancel the current change from one of those actions. How to do that? please help!! Thanks.
... View more
11-16-2010
01:49 PM
|
0
|
7
|
1055
|
|
POST
|
Thank you DBroux. your suggesion is great. I am not sure how to implement it. You can't save a polygon geometry in an ArcGIS server polyline feature class. So, the only way is you to transform the polygon to the polyline at the client side. I don't know if there is a sample somewhere, but I guess this is doable (using Paths and Rings properties of the geometry).
... View more
11-16-2010
06:08 AM
|
0
|
0
|
344
|
|
POST
|
In my application of ArcGIS API 2 for silverlight which use services of ArcGIS server 10, I have polygon layer as ArcGISDynamicMapServiceLayer, polygon feature layer and polyline feature layer. Users select a graphic from polygon layer and need to save it to polygon feature layer or polyline feature layer. I have implemented of saving to polygon feature layer. but don't know how to save to polyline layer. Please help!!! Thanks!
... View more
11-16-2010
05:27 AM
|
0
|
3
|
806
|
|
POST
|
My question is whether different spatial references between esri map and my map can cause identify no result? I mean, are different spatial references OK when my layers need to be identified? To test if IdentifyTask failed in your SL application or if empty IdentifyResults was expected, you can use Fidder to see what parameters SL app formed and use the same parameters in your web browser. If the result that you get from the web browser is not identical to the result you get from your application, we may have a problem. To do this, you can look at this thread, post #14 http://forums.arcgis.com/threads/14730-Area-And-Perimeter.
... View more
11-04-2010
02:24 PM
|
0
|
0
|
743
|
|
POST
|
EditorWidget is set up like yours and also set LayerIDs="WCR" which is polygon. I check Freehand checkbox, nothing shows, and I cannot do freehand draw. when I click template picker, just draw polygon not freehand. Does the EditorWidget show the template for that layer? If no, be sure to specify an ID for that layer. The EditorWidget ignore layers that do not have an ID. The EditorWidget's LayerIDs property is optional but if you have set this, be sure that it includes the ID of the FeatureLayer with Polygon geometry. Also when working with FeatureLayers with Polyline/Polygon geometries, GeometryService property is required. Below is an example of minimal settings for EditorWidget:
<esri:EditorWidget Map="{Binding ElementName=MyMap}"
GeometryServiceUrl="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"/>
At the right-end of the EditorWidget is Add Options button "...", when you click on this and the Add Options popup is shown, check Freehand checkbox. Select a feature type in your polygon layer and begin drawing.
... View more
11-04-2010
02:01 PM
|
0
|
0
|
534
|
|
POST
|
Thanks Jannier. I got your good ideas. one more left is how to replace data form of adding new feature with my own FeatureDataForm? The FeatureDataForm displayed by the EditorWidget cannot be styled at the moment. If you wish to use your own customized FeatureDataForm, you will need to customize the EditorWidget default style to replace the DisplayAttribute button with your own button that will display your own FeatureDataForm instance. You can refer to this sample on how to update the properties for the FeatureDataForm: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitFeatureDataForm
... View more
11-04-2010
01:51 PM
|
0
|
0
|
454
|
|
POST
|
Thanks dbroux. I got your first idea. No identify result come out for mapservice layers. IdentifyEventArgs e.IdentifyResults.count=0. I am not sure if different spatial references between esri map and my map caused the problem. No, the identify task is not working with feature layers. As the features are loaded at the client side, you don't need to indentify the features ('Identify' is working with the server). Instead you can use a maptip to display infos about features. It should work with mapservice layers. What is exactly your issue?
... View more
11-04-2010
01:08 PM
|
0
|
0
|
743
|
|
POST
|
I need to do identify for my map service layers and online editing for feature layers. both of map service and feature service are generated from a same MXD with spatial reference of Texas south centra. I use ESRI basenmap as background of my map. I can do online editing with no problem. But my mapservice layers and feature service layers failed to identify. Can Feature layer be identified? What should be done for identify without affect editing? Do I have to convert it to WKID="4326" in MXD file for my map services layers and feature services?
... View more
11-04-2010
11:43 AM
|
0
|
6
|
1018
|
|
POST
|
I tried to use freehand draw in EditorWiget for my polygon by check box of it. but it didn't draw, instead the mouse pans map or zoom in map. What should I do to make it work? Thanks for any help!
... View more
11-04-2010
10:45 AM
|
0
|
3
|
992
|
|
POST
|
I have set style for FeatureDataForm control. but failed to apply the FeatureDataForm for EditorWiget. in another word, EditorWiget still uses its own. Also I cannot set style for the Data Form which is built inside of EditorWiget such as for draw new graphic and for DisplayAttribute button. Please help!
... View more
11-04-2010
09:21 AM
|
0
|
5
|
889
|
|
POST
|
Thank you very much, Ali! the way you provide is great! that is what I am looking for. You can use Expression Blend and right-click on your FeatureDataForm and select "Edit Template" --> "Edit a copy...", then you will get the default control template for your FeatureDataForm. Switch to the XAML view and look for the "CommitButton" button. Jennifer shared a very good URL on how to do the styling in Blend, you can also look into that page.
... View more
11-03-2010
11:32 AM
|
0
|
0
|
793
|
|
POST
|
Thank you Ali. I am wondering why my xaml code of FeatureDataForm copied from Resource center is just black box: <esri:FeatureDataForm x:Name="MyFeatureDataForm" FeatureLayer="{Binding Path=Layers[PointLayer], ElementName=MyMap}" IsReadOnly="False" LabelPosition="Left" /> How can I convert the code to be style like yours? then I can add the button.
... View more
11-03-2010
09:11 AM
|
0
|
0
|
793
|
|
POST
|
Thanks Jennifer. I still cannot add a button to it. the FeatureDataForm is kind of one control, the Apply button cannot be seen, and my button cannot be inserted into FeatureDataForm. Here's a blog on how you can customize the look and feel of ArcGIS controls http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/05/20/Use-control-templates-to-customize-the-look-and-feel-of-ArcGIS-controls.aspx It's similar steps except you choose FeatureDataForm
... View more
11-02-2010
09:29 AM
|
0
|
0
|
793
|
|
POST
|
I need to add a button in FeatureDataForm in order to cancel the graphic just added on graphic layer. Is that possible and how to add it in Expression Blend?
... View more
11-02-2010
06:48 AM
|
0
|
6
|
1059
|
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|