|
POST
|
Hi Phil, Do you mind sharing your code? I could not reproduce the issue. DecimalDegrees is a supported unit: ArcGIS Runtime SDK for Microsoft WPF - Library Reference . I had just tried changing MapUnit of PolylineMeasure in this SDK sample. ArcGIS API for Silverlight - Interactive Samples | ArcGIS for Developers
... View more
10-15-2014
05:52 PM
|
0
|
0
|
875
|
|
POST
|
Hi John, Thank you for your post. Based on the property you are using, ServiceUri, you might be referring to another product. In the future, please post to: ArcGIS Runtime SDK for .NET I believe ServiceUri is not a property you can set once the layer is initialized. I tweaked your sample so it can run against latest release 10.2.4. Also, if you need your base layer to point to a new service endpoint, you need to remove the layer from map before adding a new instance with new ServiceUri. No refresh necessary, the same InitialViewpoint, you've set will be used for the new layer. Note, however that replacing tiled layers like this assume you have matching SpatialReference. In your case, the services were all WKID=3857, which is okay. Otherwise, you will need to clear MapView.SpatialReference also. xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"> <Grid> <esri:MapView x:Name="MyMapView"> <esri:Map InitialViewpoint="-9556486,4312801,-9551302,4315166"> <esri:ArcGISTiledMapServiceLayer ID="BaseMap" ServiceUri="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"> </esri:ArcGISTiledMapServiceLayer> </esri:Map> </esri:MapView> <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Center"> <Button Content="Image" Click="Button_Click" /> <Button Content="Road" Click="Button_Click" /> <Button Content="Topo" Click="Button_Click" /> </StackPanel> </Grid> private void Button_Click(object sender, RoutedEventArgs e) { var content = ((Button)sender).Content.ToString(); var layer = MyMapView.Map.Layers["BaseMap"] as ArcGISTiledMapServiceLayer; if (layer != null) { MyMapView.Map.Layers.Remove(layer); layer = new ArcGISTiledMapServiceLayer() { ID = layer.ID }; } switch (content) { case "Image": { layer.ServiceUri = "http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"; break; } case "Road": { layer.ServiceUri = "http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"; break; } case "Topo": { layer.ServiceUri = "http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"; break; } } if (layer != null) MyMapView.Map.Layers.Insert(0, layer); }
... View more
10-15-2014
05:36 PM
|
0
|
0
|
604
|
|
POST
|
Thanks for reporting this. I'm able to reproduce the issue. We'll try to get it fixed in future versions of the API.
... View more
10-15-2014
04:52 PM
|
0
|
0
|
608
|
|
POST
|
If you left UseAcceleratedLayers=False (default), you can refer to the following SDK sample to see how you can update symbol template and update selection state via VisualStateManager. ArcGIS API for Silverlight - Interactive Samples | ArcGIS for Developers.
... View more
10-15-2014
04:36 PM
|
0
|
4
|
2151
|
|
POST
|
Hi Mark, Do you mind sharing the sample code for flashing geometry that uses Envelope? I can't seem to see attachment.
... View more
10-15-2014
04:30 PM
|
0
|
1
|
2030
|
|
POST
|
Hi Joao, Sorry for the delay in my response. I had just tried this on the latest 3.2 release (10.2.1.431) and was not able to reproduce. Editing geometry completes by clicking inside the polygon even if MoveEnabled, RotateEnabled and ScaleEnabled had been set to false. Jennifer
... View more
10-13-2014
02:37 PM
|
0
|
0
|
1346
|
|
POST
|
Are you working with ServiceFeatureTable? Would it be possible for you to share also the JSON response from the QueryRelatedAsync call? I believe this exception has something to do with parsing the Fields in the JSON and would happen only if Fields with type esriFieldTypeString is missing length property. Thanks. Jennifer
... View more
10-13-2014
02:18 PM
|
0
|
0
|
1651
|
|
POST
|
In addition to Mike's response, you may also use QueryAsync providing geometry in the SpatialFilter if working with ArcGISFeatureTable/ServiceFeatureTable or GeometryEngine.Intersects method.
... View more
10-13-2014
02:13 PM
|
0
|
0
|
1618
|
|
POST
|
Hi, Thank you for submitting this bug report. As part of optimizing the serialization of layers for printing, GraphicsLayer without Graphics are ignored. But we should include a check that the GraphicsLayer is not a FeatureLayer for this may also mean that the layer is simply not initialized (as in your case). For the meantime, as a workaround you can add a temporary graphic to a FeatureLayer that is not yet initialized before you execute print.
if(!layer.IsInitialized) // Note that if FeatureLayer is already initialized, this may cause an edit.
layer.Graphics.Add(new Graphic()); // this graphic will be cleared after FeatureLayer.UpdateCompleted is raised.
mapLayers.Add(layer);
Do the workaround above before executing a print. In code below, t is PrintTask, r is the PrintResult.
var r = await t.ExecuteTaskAsync(new PrintParameters(mapLayers, mapExtent)
{
ExportOptions = new ExportOptions()
{
OutputSize = new Size(200, 200)
}
});
We'll try to get this fixed in future releases of the API. Jennifer
... View more
11-14-2013
07:44 AM
|
0
|
0
|
882
|
|
POST
|
According to this: Geographic Coordinate Systems listing , it is WKID=4267
... View more
10-11-2012
03:06 PM
|
0
|
0
|
1261
|
|
POST
|
I think as a workaround you can set DisableClientCaching=True. I've seen this happen when setting VisibleLayers property twice where most recent value was overwritten by first value.
... View more
10-11-2012
02:37 PM
|
0
|
0
|
1422
|
|
POST
|
Yes, Layer is not a control. You can probably bind to Map, ConverterParameter with ID of your layer and a Converter that would get the layer given ID instead.
... View more
10-11-2012
12:25 PM
|
0
|
0
|
889
|
|
POST
|
TextSymbols are supported. You can try the following code-snippet:
xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
<Grid x:Name="LayoutRoot" Background="White">
<esri:Map x:Name="MyMap" WrapAround="True" Background="White">
<esri:ArcGISTiledMapServiceLayer ID="PhysicalTiledLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" />
<esri:GraphicsLayer ID="MyGraphics">
<esri:GraphicsLayer.Graphics>
<esri:Graphic>
<esri:Graphic.Symbol>
<esri:TextSymbol FontFamily="Arial" FontSize="14" Foreground="Black" Text="My Text" />
</esri:Graphic.Symbol>
<esri:MapPoint X="-10.609" Y="23.729">
<esri:Geometry.SpatialReference>
<esri:SpatialReference WKID="4326" />
</esri:Geometry.SpatialReference>
</esri:MapPoint>
</esri:Graphic>
</esri:GraphicsLayer.Graphics>
</esri:GraphicsLayer>
</esri:Map>
<Button Content="Print" VerticalAlignment="Top" HorizontalAlignment="Center" Click="Print_Click" />
</Grid>
private void Print_Click(object sender, RoutedEventArgs e)
{
var printTask = new PrintTask("http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task");
printTask.ExecuteCompleted += (a, b) =>
{
if (b.Error == null)
System.Windows.Browser.HtmlPage.Window.Navigate(b.PrintResult.Url, "_blank");
};
printTask.ExecuteAsync(new PrintParameters(MyMap));
}
And yes, if you are using custom symbols (symbols that do not implement IJsonSerializable), you can implement with your own code provided REST API supports it. PrintTask will pick this up during serialization of layers.
... View more
10-11-2012
11:41 AM
|
0
|
0
|
839
|
|
POST
|
You can set GraphicsLayer.ProjectionService as seen in this SDK sample (see XAML-code): Auto-Project. WebMercator can only be used for converting geometries between Bing Maps WebMercator projection (SRID=3857) and WGS84 Geographic coordinate system (SRID=4326).
... View more
10-11-2012
11:24 AM
|
0
|
0
|
1261
|
|
POST
|
Thank you for reporting this bug. We'll try to get it fixed in future release. As of now, our API does not seem to raise Hold on MapGesture. You may want to use UIElement.ManipulationDelta event directly to detect a Tap and Hold gesture.
... View more
09-24-2012
09:49 AM
|
0
|
0
|
847
|
| Title | Kudos | Posted |
|---|---|---|
| 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 | |
| 1 | 04-05-2024 06:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-12-2026
09:38 AM
|