|
POST
|
Hi, Can you please elaborate on "when I go to print, it only shows up in black and white". Does the entire map shows black/white , including the basemap? or only Graphics are printed in black and white.Can you provide your XAML? Side note, The export web map task cannot print not any custom symbols. If there are any custom symbols for e.g. symbols using storyboards/gradients etc are downgraded to black point circle/line/polygon based on geometry type. --Preeti
... View more
07-27-2012
01:44 PM
|
0
|
0
|
875
|
|
POST
|
Hi , I don't see any techinical issue in what you are doing. I tried both of your usecases on http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2 and didn't run into any issue. Both cases were successful. For updating I did (MyMap.Layers[1] as FeatureLayer).SelectedGraphics.ToList()[0].Geometry = null; And for adding a new feature, private void Button_Click(object sender, RoutedEventArgs e) { Graphic g = new Graphic(); g.Attributes["collection_time"] = DateTime.Now; g.Attributes["description"] = "Empty Shape"; (MyMap.Layers[1] as FeatureLayer).Graphics.Add(g); } Try a simple usecase using service above and let us know if you find any problem.
... View more
07-26-2012
09:25 AM
|
0
|
0
|
933
|
|
POST
|
Magnifier actually makes the request to the map service or featurelayer service and gets the features. If the same service is added on the map and has some selections or custom symbology, magnifier cannot display it because it is not requesting image off a map. It will display the layer with default renderer/symbol or whatever comesback as part of layer info. Botton line is , I think it is not possible.
... View more
07-13-2012
03:22 PM
|
0
|
0
|
389
|
|
POST
|
Yes until layer is intialzed you can't get its info. So code will look like : public Test() { InitializeComponent(); FeatureLayer fl = new FeatureLayer(); fl.Url ="http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Average_Household_Size/MapServer/1"; fl.Initialized += fl_Initialized; fl.Initialize(); } void fl_Initialized(object sender, System.EventArgs e) { // you can get layerinfo here }
... View more
07-13-2012
03:06 PM
|
0
|
0
|
934
|
|
POST
|
Hi, Thats simple , all you need is to template symbolmaker symbol. For e.g. the symbol you want can be drawn using following code: <esri:SimpleMarkerSymbol x:Key="RedMarkerSymbol"> <esri:SimpleMarkerSymbol.ControlTemplate> <ControlTemplate> <Ellipse Fill="LightBlue" Stroke="Black" Width="15" Height="15"/> </ControlTemplate> </esri:SimpleMarkerSymbol.ControlTemplate> </esri:SimpleMarkerSymbol>
... View more
07-13-2012
02:51 PM
|
0
|
0
|
626
|
|
POST
|
Silverlight viewer has not been updated to use Silverlight API 3.0. It is coming in very near future though..:-)
... View more
07-12-2012
04:28 PM
|
0
|
0
|
476
|
|
POST
|
Actually you can do it. I haven't tested it but should work. Subscribe to MouseEnter="FeatureLayer_MouseEnter" private void FeatureLayer_MouseEnter(object sender, GraphicMouseEventArgs e) { MyDataGrid.ScrollIntoView(e.Graphic,null); }
... View more
07-12-2012
04:19 PM
|
0
|
0
|
390
|
|
POST
|
After all layers are removed and new layers are added you would need to reset the map's extent to extent of all layers. Try this MyMap.Extent=MyMap.Layers.GetFullExtent();
... View more
07-12-2012
04:10 PM
|
0
|
0
|
590
|
|
POST
|
Custom Symbols and Rendererer are not supported by Rest API at 10.1. Hence the API downgrades any custom symbols/Renderers to the base type with black color. Note, In a graphicslayer if a custom symbol is found even for one graphic, all symbols are downgraded for that layer. For e.g the symbol below would be printed as black point <esri:SimpleRenderer x:Key="YellowMarkerRenderer"> <esri:SimpleRenderer.Symbol> <esri:SimpleMarkerSymbol Size="20"> <esri:SimpleMarkerSymbol.Color> <RadialGradientBrush> <GradientStop Color="Yellow" Offset="0.578"/> <GradientStop Color="#FF0E0D07" Offset="1"/> </RadialGradientBrush> </esri:SimpleMarkerSymbol.Color> </esri:SimpleMarkerSymbol> </esri:SimpleRenderer.Symbol> </esri:SimpleRenderer>
... View more
07-12-2012
04:06 PM
|
0
|
0
|
1640
|
|
POST
|
The API does have a property called GeometryType on LayerInfo. You don't need a webclient request to get this property. Basically when the Featurelayer is initialized you can get it like this: private void FeatureLayer_Initialized(object sender, System.EventArgs e) { if ((sender as FeatureLayer).LayerInfo.GeometryType == GeometryType.Polygon) { // do something } }
... View more
07-12-2012
03:52 PM
|
0
|
0
|
934
|
|
POST
|
To display the features in current extent you would need to add your polyline layer as FeatureLayer with Mode=OnDemand. This would query/render features that are in the current extent. But again, if you zoom out and extent grows bigger you may run into slower rendering problem. See this sample http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#FeatureLayerOnDemand
... View more
06-27-2012
03:05 PM
|
0
|
0
|
604
|
|
POST
|
What version of API and ArcGIS Server are you using? For ArcGIS Server, please mention if there is any servicepack installed? Generally, in order to get the updated MapDescription, you have to call GetServerInfo on IMapServer again, The following should be the workflow Create IMapServer3 Remove the layer Call IMapServerObjects.RefreshServerObjects Create IMapServer3 Add the layer Call IMapServerObjects.RefreshServerObjects Sample code: IServerContext serverContext; IMapServer2 mapServer; IMapDescription mapDesc; // Access fine-grained ArcObjects IMapServerObjects2 mapServerObj = (IMapServerObjects)mapServer; string strMapName = mapServer.DefaultMapName; IMap map = mapServerObj.get_Map(strMapName); // Add a new group layer to map IGroupLayer groupLayer = serverContext.CreateObject("esriCarto.GroupLayer") as IGroupLayer; groupLayer.Name = "New Group Layer"; map.AddLayer(groupLayer); // Apply changes to MapServer object mapServerObj.RefreshServerObjects(); // Get updated MapServerInfo and MapDescription IMapServerInfo2 mapServerInfo = mapServer.GetServerInfo(strMapName); mapDesc = mapServerInfo.DefaultMapDescription Let me know if this helps...If you want to provide us with your testcase, I will be more than happy to assist you..
... View more
12-15-2011
10:28 AM
|
0
|
0
|
1107
|
|
POST
|
If you are using v2.2 , then FeatureDataGrid in v.2.2 will display labels for codedvaluedomains but does not display labels for subtypes. It will only display the number for subtypes. But in upcoming release you will find dropdowns in FeatureDatagrid for types and Subtypes fields, displaying the labels. ArcGIS API for Silverlight 3.0 beta 1 already includeds this functionality, if you want to give it a try.
... View more
11-03-2011
04:14 PM
|
0
|
0
|
806
|
|
POST
|
Can you explain why you want to differentiate them using XAML? Is there any attribute that makes them look different? Have you considered applying UniqueValueRenderer to the layer. UVR will display all different values with different symbol for each type. All you would need is to set the UniqueValueRenderer. Another option may be to define subtypes at the GDB level? Thanks, Preeti
... View more
11-03-2011
04:02 PM
|
0
|
0
|
823
|
|
POST
|
Please take a look at sample http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LocationToAddress All you need to do is tweak the sample a little bit for adding the returned result of the geocoding to a featureservice. In the codebehind go to in LocatorTask_LocationToAddressCompleted. In this event instead of adding the graphic to the graphic layer, you can add the graphic to your FeatureService(editable FeatureLayer) and call FeatureLayer.SaveEdits() to save the results. Hope this helps!
... View more
11-03-2011
03:45 PM
|
0
|
0
|
1341
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 09-04-2025 04:44 PM | |
| 1 | 04-14-2025 10:39 AM | |
| 1 | 12-17-2024 01:28 PM | |
| 1 | 01-16-2025 02:56 PM | |
| 1 | 12-26-2024 11:08 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-15-2025
10:12 AM
|