|
POST
|
Actually, Rotation should not be enabled for Envelope geometry. If however, you converted Envelope to Polygon, just as this code does: var env = e.Graphic.Geometry as Envelope; Polygon p = new Polygon() { SpatialReference = env.SpatialReference }; PointCollection ring = new PointCollection(); ring.Add(new MapPoint(env.XMin, env.YMin)); ring.Add(new MapPoint(env.XMin, env.YMax)); ring.Add(new MapPoint(env.XMax, env.YMax)); ring.Add(new MapPoint(env.XMax, env.YMin)); ring.Add(new MapPoint(env.XMin, env.YMin)); p.Rings.Add(ring); e.Graphic.Geometry = p; I still did not get NullReference after rotate.
... View more
05-17-2012
11:23 AM
|
0
|
0
|
1076
|
|
POST
|
I could not reproduce the issue. I am still able to Auto Zoom to Selection. In your Query, did you set OutSpatialReference to be your Map.SpatialReference? Also it might be easier to set up and robust to FeatureDataGrid if you've used FeatureLayer since FDG will base its columns on Fields information, metadata that is available on FeatureLayer.
... View more
05-17-2012
10:19 AM
|
0
|
0
|
1958
|
|
POST
|
You can customize the look and feel of EditorWidget and/or TemplatePicker by following the steps in this blog post: http://blogs.esri.com/esri/arcgis/2010/05/28/localizing-arcgis-controls/. After you've created the style, you can add a button to the style that will have MeasureAction as seen in this SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#UtilityActions
... View more
05-17-2012
09:48 AM
|
0
|
0
|
779
|
|
POST
|
Have you seen this SDK sample? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureDataGrid Few things to note in this sample, FeatureDataGrid Map and GraphicsLayer property (see element binding) and FeatureLayer.OutFields. In this sample, it is "*" which means show all fields. Otherwise, if you only want ObjectID to show, change FeatureLayer.OutFields="ObjectID".
... View more
05-17-2012
09:44 AM
|
0
|
0
|
850
|
|
POST
|
Bing.TileLayer.LayerType is a DependencyProperty. I was able to test that it responds to binding using the following code: xmlns:bing="clr-namespace:ESRI.ArcGIS.Client.Bing;assembly=ESRI.ArcGIS.Client.Bing"
xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
<Grid x:Name="LayoutRoot" Background="White">
<esri:Map x:Name="MyMap">
<bing:TileLayer
ID="BingLayer" LayerStyle="Aerial"
ServerType="Production"
Token="{StaticResource BingKey}"/>
</esri:Map>
<ComboBox x:Name="BingLayerStyle"
SelectionChanged="BingLayerStyle_SelectionChanged"
SelectedItem="{Binding ElementName=MyMap, Path=Layers[BingLayer].LayerStyle, Mode=TwoWay}"
VerticalAlignment="Top" HorizontalAlignment="Center"/>
</Grid>
BingLayerStyle.ItemsSource = new ESRI.ArcGIS.Client.Bing.TileLayer.LayerType[]{
ESRI.ArcGIS.Client.Bing.TileLayer.LayerType.Aerial,
ESRI.ArcGIS.Client.Bing.TileLayer.LayerType.AerialWithLabels,
ESRI.ArcGIS.Client.Bing.TileLayer.LayerType.Road};
BingLayerStyle.SelectedIndex = 1;
... View more
05-17-2012
09:28 AM
|
0
|
0
|
2117
|
|
POST
|
Thank you for reporting this bug. We have forwarded this to REST API team and we'll try to work around it in the next release of ArcGIS API for Silverlight. I was able to repro in 10 SP1 but it seems fixed in sampleserver3 and 10.1 10.01 ??? ???geometryType??? is missing, feature with null geometry is returned first. http://serverapps10.esri.com/ArcGIS/rest/services/GulfCoastTurtles/FeatureServer/0/query?objectIds=16%2C+2&where=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&outSR=&returnCountOnly=false&returnIdsOnly=false&f=pjson 10.0 ??? ???geometryType??? is present, feature with geometry (requested 2nd) is returned first. http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0/query?objectIds=22811%2C22408&where=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&outSR=&returnIdsOnly=false&f=pjson 10.1 ??? (Pre-release) ???geometryType??? is present, feature with geometry (requested 2nd) is returned first. http://servicesbeta4.esri.com/arcgis/rest/services/Notes/FeatureServer/0/query?where=&objectIds=3%2C1&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&outSR=&version=&returnIdsOnly=false&returnCountOnly=false&returnZ=false&returnM=false&f=pjson
... View more
05-16-2012
07:18 PM
|
0
|
0
|
1600
|
|
POST
|
If you want Legend control to switch Map through RadioButton.Click, you can use RadioButton.Tag to store the element and implement its Click event. You can do something like this: XAML
<StackPanel VerticalAlignment="Top" HorizontalAlignment="Center">
<RadioButton x:Name="Rb" Content="Test" Tag="{Binding ElementName=MyMap}" Click="RadioButton_Click"/>
<RadioButton x:Name="Rb2" Content="Test" Tag="{Binding ElementName=MyMap2}" Click="RadioButton_Click"/>
</StackPanel>
Assuming you've given your Legend control a name (i.e. x:Name="MyLegend") Code-behind
private void RadioButton_Click(object sender, RoutedEventArgs e)
{
var rb = sender as RadioButton;
if (rb.IsChecked.HasValue && rb.IsChecked.Value)
MyLegend.Map = rb.Tag as Map;
}
... View more
05-16-2012
07:16 PM
|
0
|
0
|
1318
|
|
POST
|
If I understood right you want the union of Layer 1 results so you can query Layer 2 that intersect that geometry. You can look at the following SDK samples: First, Query Layer 1 http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AttributeQuery Second, Call Union on Layer 1 query results http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Union Third, Perform Query on Layer 2 by using Union results as Query.Geometry. http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery
... View more
05-11-2012
09:28 AM
|
0
|
0
|
1129
|
|
POST
|
It depends on your service. For example, this service defines its coded value domain as: STATUS ( type: esriFieldTypeSmallInteger , alias: Status , editable: true , nullable: true , Coded Values: [1: New] , [2: Open] , [3: Closed] ) This feature attribute will then be: graphic.Attributes["STATUS"] = 1; where datatype is Int16 and is one of the possible code 1, 2, 3. http://servicesbeta2.esri.com/arcgis/rest/services/SF311/FeatureServer/0/1
... View more
05-11-2012
09:10 AM
|
0
|
0
|
2306
|
|
POST
|
If your layer is added to your map control, it is initialized when map is initialized. Otherwise, you need to be explicit and call layer.Initialize() and only until then can you call layer.Update(). This seems related (post# 16) forums.arcgis.com/threads/21714-Editing-Tables-in-Feature-Service-with-Silverlight-4
... View more
05-10-2012
09:32 AM
|
0
|
0
|
674
|
|
POST
|
Do you perform your query with OutSpatialReference same as the Map's SpatialReference? Does the result contain geometry and does it match the map's? RendererTakesPrecedence would only make a difference if you have graphic.Symbol as well as Renderer defined. But if graphic is added without symbol or your layer has no Renderer then changing this has no effect. Are you able to repro the issue by using one of the sample servers using ArcGIS 10? Can you share some code or explain the order of when you do your query, what parameters are set and what layers are on your map? Thanks.
... View more
05-10-2012
09:26 AM
|
0
|
0
|
1112
|
|
POST
|
I assume the symbol you are using fits the type of geometry (i.e. FillSymbol for Polygon). Also, if the same code works in v2.2 and behaves differently in v2.4, it could be the auto-project. You are probably zooming now to an extent that does not match your map's extent since the feature.geometry was auto-projected.
... View more
05-09-2012
01:19 PM
|
0
|
0
|
1112
|
|
POST
|
Thank you for reporting this. I was able to reproduce with the following SDK sample: http://resourcesbeta.arcgis.com/en/help/silverlight-api/samples/start.htm#GenerateRenderer I simply added these lines: XAML <Button Content="Prints" Click="Button_Click" Width="140" Height="30"
VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5"/>
Code-Behind
private void Button_Click(object sender, RoutedEventArgs e)
{
var printTask = new PrintTask("http://yourservername:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task");
printTask.ExecuteCompleted+=new EventHandler<PrintEventArgs>(printTask_ExecuteCompleted);
printTask.ExecuteAsync(new PrintParameters(MyMap));
}
We will try to get this fixed before final. Meanwhile, if you replace the layer in XAML with the following code. It should work: <esri:ArcGISDynamicMapServiceLayer ID="USA"
Url="http://servicesbeta2.esri.com/arcgis/rest/services/Census/MapServer">
<esri:ArcGISDynamicMapServiceLayer.DynamicLayerInfos>
<esri:DynamicLayerInfoCollection>
<esri:DynamicLayerInfo ID="2">
<esri:DynamicLayerInfo.Source>
<esri:LayerMapSource MapLayerID="2" />
</esri:DynamicLayerInfo.Source>
</esri:DynamicLayerInfo>
</esri:DynamicLayerInfoCollection>
</esri:ArcGISDynamicMapServiceLayer.DynamicLayerInfos>
</esri:ArcGISDynamicMapServiceLayer>
... View more
05-09-2012
12:17 PM
|
0
|
0
|
699
|
|
POST
|
You can use FeatureLayer and Editor Select command. http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerSelection. If you open up Fiddler, you will see that it performs a query based on the selection box. You can change Editor.SelectionMode to Polygon instead of Rectangle. This is similar to doing this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery except you can add more FeatureLayer in your Map and Editor.Select will perform the spatial query for you.
... View more
05-08-2012
09:53 AM
|
0
|
0
|
670
|
|
POST
|
You can download one of the template gallery samples that use DraggableWindow. You can change the control that goes inside of it: http://help.arcgis.com/en/webapi/silverlight/samples/TemplateGalleryWeb/start.htm
... View more
05-08-2012
09:48 AM
|
0
|
0
|
536
|
| 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 |
2 weeks ago
|