|
POST
|
Jennifer, I set properties of the Layer as " Label Feature on This Layer" in mxd file, and labels show on map in the mxd. then I created map service and feature service. but labels display on the map service not the feature service. below is part of information of feature service copied online: Drawing Info: Renderer: Simple Renderer: Symbol: Simple Fill Symbol: Style: esriSFSSolid, Color: [230, 0, 0, 255] Outline: Simple Line Symbol: Style: esriSLSSolid, Color: [255, 255, 255, 255], Width: 1 Label: Description: Transparency: 0 Labeling Info: Label Placement: esriServerPolygonPlacementAlwaysHorizontal Label Expression: [DPC_ID] Use Coded Values: True Symbol: Simple Text Symbol: Type: esriTS Color:255, 255, 255, 255 Background Color: null Border Line Color: null Vertical Alignment: bottom Horizontal Alignment: center Right To Left: False Angle: 0 XOffset: 0 YOffset: 0 Font Family: Arial Font Size: 8 Font Style: normal Font Weight: normal Font Decoration: none Min. Scale: 0 Max. Scale: 0 I don't have access to the links you provided.
... View more
10-27-2010
09:01 AM
|
0
|
0
|
654
|
|
POST
|
I need to add more image icons to EditorWiget for other operation. Where can I find more images ?
... View more
10-27-2010
06:57 AM
|
0
|
1
|
919
|
|
POST
|
Jeniffer, I just need graphically add a image button into EditorWidget toolbar like in Expression Blend. How to that? the link you gave me is only for functional code behind. I don't need those since I have already. Sure. Please look at this related thread:http://forums.arcgis.com/threads/14328-Extending-Editor-Widget
... View more
10-27-2010
05:45 AM
|
0
|
0
|
529
|
|
POST
|
Thank you Jeniffer. please compare map service and feature service for the same mxd file you will know what I mean. the feature is polygon with red fill symbol. feature service has no label shown while mapservice does. http://mapserver2.pwe.pserv.coh.gov/ArcGIS/rest/services/API2_3dpc/MapServer http://mapserver2.pwe.pserv.coh.gov/ArcGIS/rest/services/API2_3dpc/FeatureServer/2 I'm not sure I understand the question. What label are you talking about and where do you expect this to show on the FeatureLayer? Can you explain using sampleserver? This is a FeatureService that can be used for FeatureLayer (http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/LandusePlanning/FeatureServer/0) This is the corresponding MapService that can be used in ArcGISDynamicMapServiceLayer (http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/LandusePlanning/MapServer)
... View more
10-27-2010
05:33 AM
|
0
|
0
|
654
|
|
POST
|
I need to add one more button in EditorWiget for some operation. Is it possible to customize it by adding the button? Hope get help from expertise here. Thanks
... View more
10-26-2010
12:48 PM
|
0
|
4
|
733
|
|
POST
|
I have feature layer created by feature service. , the lables of layer are displayed In the mxd file. but not show on silverlight application as feature layer and only show as ArcGISDynamicMapServiceLayer. why? how to fix it?
... View more
10-26-2010
12:21 PM
|
0
|
6
|
4579
|
|
POST
|
Thank you for your great help! Jennifer. It works. I was using this as my target layer: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2 Notice, that the FeatureDataForm uses the proper control depending on the field type and the same validation check applies.
... View more
10-26-2010
05:55 AM
|
0
|
0
|
146
|
|
POST
|
Yes "myFeatureLayer" has the attributes. But I do not want save attribute by code. I still need attribute window for user's input and need the window to be exactly like the attribute form defined in Feature Service such data validation, calender for date, dropdown box for subtype etc. in another word, I still want to use the attribute window like the one in EditorWiget. Does "myFeatureLayer" in your code have "DPC_ID", "SUBDIVISION", and "KEYMAP" attributes? The reason I'm asking is that FeatureDataForm gets attribute definitions from its associated "FeatureLayer" property and if "myFeatureLayer" doesn't have the above properties in it nothing will show up regardless of your attribute definitions in your "copyGraphic".
... View more
10-25-2010
12:37 PM
|
0
|
0
|
705
|
|
POST
|
copyGraphic is from source and dosn't need attribute window from source. since FeatureLayer of FeatureDataForm is set like this: MyFeatureDataForm.FeatureLayer = myFeatureLayer. I thought FeatureDataForm is going to have attribute fields shows for myFeatureLayer which is target layer. It is correct? if not, I need Attributes.Add() for graphic like you suggest. I add attributes like below: FeatureLayer myFeatureLayer = MyMap.Layers["dpcpoly"] as FeatureLayer; // copyGraphic.Attributes.Add(myFeatureLayer.OutFields[0].ToString(),3111); copyGraphic.Attributes.Add("DPC_ID", null); copyGraphic.Attributes.Add("SUBDIVISION", null); copyGraphic.Attributes.Add("KEYMAP", null); MyFeatureDataForm.FeatureLayer = myFeatureLayer; MyFeatureDataForm.GraphicSource = copyGraphic; FeatureDataFormBorder.Visibility = Visibility.Visible; however there is still no field appears in the attribute form. Also how to make the attribute window show like the attribute form defined in the FeatureLayer of target, such as dropdown box of subtype field, calendar from date type field, data validations etc.? From what I see in your code the "copyGraphic" doesn't have any attributes defined (just the Geometry and the Symbol). You need to use Attributes.Add() method of the Graphic object to define and populate corresponding attributes and their values.
... View more
10-25-2010
11:08 AM
|
0
|
0
|
705
|
|
POST
|
the target layer is FeatureLayer and OutFiels is set like the OutFields(*). the source is ArcGISDynamicMapServiceLayer. the two layers have totaly different attribute fields. So the attributes window is for the target layer. copyGraphic belongs to first layer and is created by code below: private void IdentifyTask_ExecuteCompleted(object sender, IdentifyEventArgs args) { Graphic feature = args.IdentifyResults[0].Feature;//IdentifyResults is from source layer copyGraphic = new Graphic() { Symbol = searchFillSymbol, Geometry = feature.Geometry }; hilightGraphicsLayer.Graphics.Add(copyGraphic); FeatureLayer myFeatureLayer = MyMap.Layers["dpcpoly"] as FeatureLayer;//dpcpoly is the target layer MyFeatureDataForm.FeatureLayer = myFeatureLayer; MyFeatureDataForm.GraphicSource = copyGraphic; FeatureDataFormBorder.Visibility = Visibility.Visible; } You need to check for the following in order to identify the problem: - What is the type of your target layer (e.g. FeatureLayer,...)? If the target layer is a FeatureLayer then: - Does it have the same attribute (field) collection? - Are you setting OutFields property of the target layer? Also, how are you populating the "copyGraphic" in your source code? Is it a cloned graphic object or it still belongs to your first layer?
... View more
10-25-2010
10:11 AM
|
0
|
0
|
705
|
|
POST
|
yes the featureLayer has OutFileds(*), and attribute window apprears without problem when create new feature by dwawing polygon using EditorWidet. Does your FeatureLayer have OutFields? The FeatureDataForm determines what fields to show based on this.
... View more
10-25-2010
07:20 AM
|
0
|
0
|
705
|
|
POST
|
I have two polygon layers and create new feature for one layer by selecting polygon from another layer. the selected polygon is highlighted without problem. I have a FeatureDataForm which is ESRI in house control as attribute data entry for the new feature, and need to show it right after the polygon is highlighted for user input for the new feature. the problem is that the FeatureDataForm apprears as blank popup window without attribute texbox. I need help of expertise here. the piece code is: FeatureLayer myFeatureLayer = MyMap.Layers["dpcpoly"] as FeatureLayer; MyFeatureDataForm.FeatureLayer = myFeatureLayer; MyFeatureDataForm.GraphicSource = copyGraphic; //copyGraphic is selected polygon from another layer. FeatureDataFormBorder.Visibility = Visibility.Visible;
... View more
10-25-2010
06:30 AM
|
0
|
10
|
1316
|
|
POST
|
THanks. I think Will check it. This is related thread: http://forums.arcgis.com/threads/9756-Undo-edits-of-the-EditorWidget (see post #9) to wire up to TemplatePicker's Editor.EditCompleted event.
... View more
10-22-2010
12:25 PM
|
0
|
0
|
1215
|
|
POST
|
good sigh. but I still have not get an entire picture. the piece of code I wrote below by follow your instruction: private void Editor_EditCompleted(object sender, Editor.EditEventArgs e) { FeatureLayer myFeatureLayer = MyMap.Layers["dpcpoly"] as FeatureLayer; if (e.Action.Equals(Editor.EditAction.Add)) { } } Could you do me a bigger favor for further solution? Thank you! Listen to EditCompleted event handler of your EditorWidget. You should check for Editor.EditAction.Add for the Action peoperty of the EditEventArgs.
... View more
10-22-2010
10:52 AM
|
0
|
0
|
1215
|
|
POST
|
THank you Ali. Does the way apply for editorWiget? Could you let me know where to catch the event Graphics.CollectionChanged? at what point? You need to listen to the Graphics.CollectionChanged handler of your FeatureLayer and for each new item set your primary key attribute.
... View more
10-22-2010
10:29 AM
|
0
|
0
|
1215
|
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|