|
POST
|
So 96 is the screen DPI (which I can have C# get the current users default in case this is not), but may I ask what the 72 is? By definition in typography a point is 1/72 of an inch. So we can set a constant with this value. Now the labels almost match the same as the defaults, the only other thing that seems to be happening is the labels (in this case for a line) shift away from the line more than the defaults do. Setting the LabelClass.LabelPlacement like so: labelClass.LabelPlacement = (LabelPlacement)Enum.Parse(typeof(LabelPlacement), currentJSONLabelingInfo.labelPlacement.Replace("esriServer", "")); //Convert esriServerLinePlacementAboveAlong to LinePlacementAboveAlong And there are no offsets or anything. Not a huge issue... but not sure why they are shifting a bit if you happen to know? Attached an image for clarification. Sorry no idea. Thanks again for all the great help! If Dominique�??s boss is reading this, please give him a raise . Thanks I'll definitively remind him when the time comes 😮
... View more
01-13-2014
10:20 PM
|
0
|
0
|
3491
|
|
POST
|
Simple question but could not find an answer in the documentations. Is the SL versions independent of the ArcGIS versions? That is can I use SL 3.2 with ArcGIS 10.1? Can I use SL3.1 with 10.2? 10.2.1? Thanks Yes the versions are independent. You can use any SL version with ArcGIS 9.3 and +. Obviously for taking advantage of a new functionality, you need at least the server and the associated SL versions that implement the new functionality.
... View more
01-13-2014
10:07 PM
|
0
|
0
|
570
|
|
POST
|
First question, is there any easy way to just change the label min/max without having to specify all the other properties? You have to set all the labels properties but not all the renderer properties. For example the following code is working with the renderer defined at server side: <esri:Map> <esri:ArcGISDynamicMapServiceLayer Url="http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer"> <esri:ArcGISDynamicMapServiceLayer.LayerDrawingOptions> <esri:LayerDrawingOptionsCollection> <esri:LayerDrawingOptions LayerID="2" ShowLabels="True"> <esri:LayerDrawingOptions.LabelClasses> <esri:LabelClassCollection> <esri:LabelClass LabelExpression="[state_abbr]" MaxScale="15000000"> <esri:LabelClass.LabelOptions> <esri:LabelOptions FontSize="20" Color="Green" /> </esri:LabelClass.LabelOptions> </esri:LabelClass> <esri:LabelClass LabelExpression="[state_name] CONCAT NEWLINE CONCAT "Pop2000:" CONCAT [pop2000]" MinScale="15000000"> <esri:LabelClass.LabelOptions> <esri:LabelOptions FontSize="15" Color="Green" /> </esri:LabelClass.LabelOptions> </esri:LabelClass> </esri:LabelClassCollection> </esri:LayerDrawingOptions.LabelClasses> </esri:LayerDrawingOptions> </esri:LayerDrawingOptionsCollection> </esri:ArcGISDynamicMapServiceLayer.LayerDrawingOptions> <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> </esri:Map> Since there is not a nice method like CreateDynamicLayerInfosFromLayerInfos() for LayerDrawingOptions I am retrieving all the layer info manually from the servers (JSON). Second question, is there a built in way to get this info I am not seeing? You are right there is no builtin method to create a default layerDrawingOptions nevertheless you can use the GetAllDetails method to get renderers defined at server side and use them to build a LayerDrawingOptions object. I am taking this info to build out a complete LayerDrawingOptions with the defaults from the server, but the Font Size (even though set to the same font settings as the server) gets smaller. Third question, and most important, is this a bug? Why is it not rendering the same size? I am not sure but might be a difference due to points vs pixels. try by multiplying by a ratio 96/72.
... View more
01-12-2014
11:34 PM
|
0
|
0
|
3491
|
|
POST
|
The Dictionary converter is no more useful from Silverlight 4. You can now use the XAML indexer syntax: [<key>]. In your sample:
new Binding("Attributes[" + kv.Key + "]");
... View more
01-12-2014
11:05 PM
|
0
|
0
|
536
|
|
POST
|
1) Will there be any sample(s) illustrating the "Ability to define how labels are displayed within dynamic map service layers via the LabelClass and LabelOptions classes" Example of labels defined in XAML and depending on the scale: <esri:Map>
<esri:ArcGISDynamicMapServiceLayer Url="http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer">
<esri:ArcGISDynamicMapServiceLayer.LayerDrawingOptions>
<esri:LayerDrawingOptionsCollection>
<esri:LayerDrawingOptions LayerID="2" ShowLabels="True">
<esri:LayerDrawingOptions.LabelClasses>
<esri:LabelClassCollection>
<esri:LabelClass LabelExpression="[state_abbr]" MaxScale="15000000">
<esri:LabelClass.LabelOptions>
<esri:LabelOptions FontSize="20" Color="Green" />
</esri:LabelClass.LabelOptions>
</esri:LabelClass>
<esri:LabelClass LabelExpression="[state_name] CONCAT NEWLINE CONCAT "Pop2000:" CONCAT [pop2000]" MinScale="15000000">
<esri:LabelClass.LabelOptions>
<esri:LabelOptions FontSize="15" Color="Green" />
</esri:LabelClass.LabelOptions>
</esri:LabelClass>
</esri:LabelClassCollection>
</esri:LayerDrawingOptions.LabelClasses>
<esri:LayerDrawingOptions.Renderer>
<esri:SimpleRenderer>
<esri:SimpleRenderer.Symbol>
<esri:SimpleFillSymbol BorderBrush="#74E01B" BorderThickness="1" Fill="#7074E01B" />
</esri:SimpleRenderer.Symbol>
</esri:SimpleRenderer>
</esri:LayerDrawingOptions.Renderer>
</esri:LayerDrawingOptions>
</esri:LayerDrawingOptionsCollection>
</esri:ArcGISDynamicMapServiceLayer.LayerDrawingOptions>
<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>
</esri:Map> 2) When will v3.2 of the Toolkit be downloadable? The toolkit is already downloadable from codeplex .
... View more
01-12-2014
10:55 PM
|
0
|
0
|
411
|
|
POST
|
I don't reproduce your issue. Note that by setting LayerInfo.MinScale/MaxScale you can reduce the scale range defined at server side but you can NOT extend this scale range. For example if a sublayer at server side is published with a scale range of [0; 1:10000], there is no way to get the sublayer displayed at a scale larger than 1:10000 even if you change the client MaxScale (Note: I mean no way with an ArcGISDynamicMapServiceLayer, you can get the features displayed with a FeatureLayer).
... View more
01-10-2014
01:38 AM
|
0
|
0
|
894
|
|
POST
|
LayerItemViewModel.LayerDescription is populated from the description coming from the layer metadata. Did you check that your service has a description? From this sample, it looks like the description is correctly set (you can see the layer description in the legend layer item tooltip).
... View more
01-09-2014
12:15 AM
|
0
|
2
|
1030
|
|
POST
|
What is the version of ArcGISServer? If I remember well, Upload is available only from 10.1 or 10.1 SP1. To check that, you can browse to http://oba:6080/arcgis/rest/services/SAEB/AutoCad/GPServer and verify that there is an 'Uploads' child resource. With previous version you have to use a GPDataFile.
... View more
01-08-2014
11:58 PM
|
0
|
0
|
1148
|
|
POST
|
To remove all legend swatches you can set Legend.LegendItemTemplate to null (in XAML LegendItemTemplate="{x:Null}"). If you want to remove the swatches for the clustered graphics layers and keep them for others layers, you have to do it by code. On event Legend.Refreshed, remove the LegendItems for the clustered layers.
... View more
01-05-2014
09:56 PM
|
0
|
0
|
1227
|
|
POST
|
Hi all, I tried to use GPProcessor to do Kriging Interpolation and the GPResultImageLayer just couldn't show. I used fiddler to get the response from arcgis server. The result is shown in the attachment. Notice that there is a url and I used that url and was able to get a gif which is the result of the interpolation. Hope any one can help.Thanks a lot! Silverlight doesn't support GIF. Did you try with another image format?
... View more
12-20-2013
04:27 AM
|
0
|
0
|
800
|
|
POST
|
Hi Ryan, I added a GitHub branch with the code source of a work around to the Add Attachment WPF10.2 issue. Let me know if you run into any issue with it.
... View more
12-19-2013
01:45 AM
|
0
|
0
|
1731
|
|
POST
|
Publishing an ArcGISImageServiceLayer is a server matter the client Silverlight API can't deal with. However you can set the image into an element layer. There is a sample here: https://developers.arcgis.com/en/silverlight/sample-code/start.htm#MediaLayer (with a video but you'll get the idea)
... View more
12-17-2013
06:15 AM
|
0
|
0
|
565
|
|
POST
|
Humm strange! If you could share a repro case, that would be very helpful. Thanks
... View more
12-17-2013
06:06 AM
|
0
|
0
|
725
|
|
POST
|
I have the FeatureLayer from the Map service. We are using UniqueValue Render on one of field. It is a polygon Feature class. In the REST service endpoint, It stated clearly the UniqueValue Render is used. I also explicitly stated using FeatureLayer.RendererTakesPrecedence=true; However on the may, it displayed using default symbols with one color accross the board. I had this issue before. FeatureLayer.RendererTakesPrecedence=true did the trick. But this, It doesn't work. Any ideas will be highly appreciated! May be because you don't grab the fields the unique renderer is based on. Try with OutFields="*" or be sure all unqiue value renderer fileds are included in OutFields.
... View more
12-16-2013
09:12 PM
|
0
|
0
|
725
|
|
POST
|
Hello, Should await --> async task, e.g. var credential = await IdentityManager.Current.GenerateCredentialTaskAsync("url", "user1", "pass.word1"); work in silverlight? When I try I get the message: "The await operator can only be used within an async method. Consider making this method with the 'async' modifier and changing its return type to 'Task'." Thanks. You can use async/await c# keywords in Silverlight but you need to load and reference the Async package http://www.nuget.org/packages/Microsoft.Bcl.Async/1.0.16 Note that for simplicity I used 'await' in my sample but you could as well used the event based method GenerateCredentialAsync.
... View more
12-16-2013
01:44 PM
|
0
|
0
|
1315
|
| 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
|