|
POST
|
There are 2 options: Printing at client side (sample😞 In this case you have to use a PDF printer driver to get a pdf file. Printing at server side (sample😞 In this case, the pdf file (or any other supported image format) is generated by a server geoprocessing service.
... View more
12-03-2014
02:49 AM
|
1
|
0
|
1204
|
|
POST
|
If the amount of data is the problem, I would suggest to use the FeatureLayer OnDemand mode AND to set the feature layer MaximumResolution. With these settings only the data for the current extent are loaded AND the feature layer is not displayed at large scale where too much data would be loaded. Additionally you can set an ArcGISDynamiMapServiceLayer visible at large scale that would display the features without allowing edition.
... View more
12-01-2014
01:03 AM
|
0
|
0
|
616
|
|
POST
|
No it's not a bug. You may have to use RightTapped instead. See UIElement Holding doc: Touch can produce a Holding action, but mouse devices generally can't. Holding is intended for informational UI, but for interactions like displaying a context menu you should use RightTapped instead.
... View more
11-28-2014
12:34 AM
|
0
|
0
|
910
|
|
POST
|
Yes ArcGISDynamicMapServiceLayer doesn't support spatial filters. We might imagine to create a custom layer that would clip the image returned by the server but that seems convoluted. Else the built in solution is to use FeatureLayers with a geometry filter, but, as noticed, this means you have to create separate layers by sublayer ID and this means the features are loaded at client which can impact the performances.
... View more
11-27-2014
03:30 AM
|
1
|
0
|
2438
|
|
POST
|
It's the normal behavior. GenerateGeodatabaseAsync returns as soon as the the generation is executing on the server. You have to use the callback to follow the progress and know when the task ends. You can look at the GenerateGeodatabase sample or the SyncGeodatabase sample which demonstrate the process..
... View more
11-27-2014
01:04 AM
|
0
|
3
|
1655
|
|
POST
|
There is a ScaleLine control in the toolkit which might help. There is also a scaleline sample showing how the control can be customized.
... View more
11-27-2014
12:20 AM
|
2
|
1
|
951
|
|
POST
|
The availability of a button is depending on the way you implemented the underlying action. If you affected a command to the button, the avaibility is defined by the CanExecute method of the command, so really depending on how you implemented it. I suggest you look at the 'LayerList' sample which demonstrates how to display a list of layers with the possibility to turn on/off each layer.
... View more
11-26-2014
01:05 AM
|
0
|
1
|
822
|
|
POST
|
The easiest way to get a layer out of the legend is to set the layer.ShowLegend property to false. So by binding this layer property to your checkbox, you should directly get the expected behavior. Else, if for any reason you'd rather using the Legend_Refreshed Handler, a couple of possible options: - call Refresh on the Legend object (the drawback is that all legend layers will be refreshed) - keep the legend item in a private field when you removed it, so you can readd it when needed.
... View more
11-25-2014
08:24 AM
|
2
|
2
|
1866
|
|
POST
|
You have to set the Query.OutSpatialReference before executing the query task. There are a few query samples that demonstrate how to do it in the Silverlight interactive SDK. If you are experiencing issues in a specific use case, please share a repro. Thanks /Dom
... View more
11-20-2014
12:26 AM
|
0
|
17
|
2939
|
|
POST
|
You can set the FillSymbol Color to a color having an alpha component. So the FillSymbol outline won't be impacted.
... View more
11-20-2014
12:15 AM
|
1
|
0
|
1450
|
|
POST
|
There is a print sample that works in WinStore SDK samples. If you are experiencing issues with the print task, please share a repro case. Thanks /Dom
... View more
11-20-2014
12:09 AM
|
0
|
0
|
607
|
|
POST
|
For the WebMercator case and images that cover a small area, this has been fixed in the ArcGIS for WPF version 10.1.1 and ArcGIS for Silverlight version 3.1. For others map spatial references, it's not fixed. The workaround may be to project the groundoverlay extent by yourself by using a geometry service. This may make sense for SpatialReferences whose the projection of a WGS84 envelope is also an envelope (i.e a projection where meridians and parallels are perpendicular straight lines). But anyway this will not be accurate for images that cover a large area (due to the image distorsion)
... View more
11-19-2014
03:30 AM
|
0
|
0
|
1223
|
|
POST
|
You can't cast directly a List<int> to an IEnumerable<object>. Even if the Silverlight IEnumerable was supporting the covariance (which anyway is not the case unlike WPF version), that would not work since int is not an object. You should get it to work by casting each int to an object. Something like:
myLegendLayer.SubLayerIds = pair.Value.Cast<object>();
... View more
11-16-2014
11:34 PM
|
0
|
0
|
680
|
|
POST
|
GraphicsSource can be any enumerable of Graphics so you can create your own class that implements IEnumerable<Graphic> and subclasses CollectionView. Something like:
public class GraphicsCollectionView : ListCollectionView, IEnumerable<Graphic> { public GraphicsCollectionView(ObservableCollection<Graphic> graphics) : base(graphics) { }
public new IEnumerator<Graphic> GetEnumerator() { return this.OfType<Graphic>().GetEnumerator(); } }
Then you can use it as you proposed:
Graphics = new ObservableCollection<Graphic>(); var graphicsView = new GraphicsCollectionView(Graphics); graphicsView.Filter = new Predicate<object>(GraphicsViewFilter);
graphicsLayer.GraphicsSource = graphicsView;
private bool GraphicsViewFilter(object item){ return true; //Custom filter logic goes her }
... View more
11-13-2014
03:07 AM
|
0
|
1
|
977
|
|
POST
|
I got it working by setting to null the Fields property of the LayerDataSource: dynamicLayerInfo.Source = new LayerDataSource { DataSource = dataSource, Fields = null }; By default the Fields property is initialized with an empty Collection which has not the same meaning: - empty collection --> no field participate to the service - null --> all fields participate to the service This raises the question; what is the best default value? An empty collection seems confusing.
... View more
11-10-2014
02:30 PM
|
2
|
2
|
2064
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-14-2025 09:24 AM | |
| 1 | 06-13-2013 09:22 AM | |
| 1 | 04-29-2022 02:21 AM | |
| 1 | 04-29-2022 02:28 AM | |
| 1 | 09-07-2021 03:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-30-2025
08:06 AM
|