|
POST
|
If your need is just to display one label above the legend, why not create a vertical stackpanel with 2 UI elements : the label and the legend?
... View more
09-06-2012
11:04 AM
|
0
|
0
|
2271
|
|
POST
|
When I add textboxes to my current code (see my post # 4 for more info) it doesn't show up. Sorry I don't see where you added textboxes in your code post#4. But I you add textboxes in the datatemplate of the LayerTemplate and/or of the MapLayerTemplate, you should for sure see them in the legend next to the checkbox.
... View more
09-06-2012
09:18 AM
|
0
|
0
|
2271
|
|
POST
|
in UpdateGraphics() method what is if (_graphicsLayer.Graphics.Count >= 4) count 4 been checked for That's only useful in order to know if the graphics showing the result (2 point markers, the initial line and the result line) have already been created. It's only for the sample purpose and very likely you don't need that in your application. You should just have to grab the LinearReferencingExtension class that offers a M1ToM2 method returning the polyline between 2 linear positions. Something like: var subLine = myPolyline.M1ToM2(5000, 7000);
... View more
09-06-2012
09:00 AM
|
0
|
0
|
1283
|
|
POST
|
Instead of setting the 'Fill' property, you should set the 'Color' property: simpleFillSymbol.Color = new SolidColorBrush..... Note also that FeatureService.Symbols.SimpleFillSymbol is for internal use only. External usage is at your own risk.
... View more
09-06-2012
08:53 AM
|
0
|
0
|
612
|
|
POST
|
This linear referencing sample demonstrates how you can extract a polyline between two linear positions (start KM 5, end KM 7 in your example)
... View more
09-05-2012
11:56 PM
|
0
|
0
|
1283
|
|
POST
|
For a map layer (i.e. a layer directlly attached to a map), you can subscribe to event Layer.PropertyChanged and, in your Handler, react accordingly when the changed property is "Visible". For a sublayer of a dynamic map service, you can subscribe to VisibilityChanged event that occurs when the visibility of a sublayer changes.
... View more
09-05-2012
11:49 PM
|
0
|
0
|
817
|
|
POST
|
It's most generally done at server side by configuring a secure environment for ArcGIS server. This doc should help.
... View more
09-05-2012
11:41 PM
|
0
|
0
|
528
|
|
POST
|
The "Code Behind C#" and "XAML" pages are not showing in the Silverlight app though... it�??s just blank? Should be OK now. Sorry about that.
... View more
09-05-2012
09:34 AM
|
0
|
0
|
2013
|
|
POST
|
Hi Ryan, I updated the sample to work for both cases : euclidian or geodesic calculations. Hope this helps.
... View more
09-05-2012
08:55 AM
|
0
|
0
|
2013
|
|
POST
|
Legend of a column charts doesn't behave the same as a pie chart legend: A pie chart legend displays all values in the serie (what you need). A column chart legend shows an item by serie and in our case there is only one column serie, so only one value in the legend. That being said as the legend chart and the symbol chart are differents you might keep the pie chart for the legend and a column chart for the symbol. That could be a workaround (not tested though, so no warranty :confused:)
... View more
09-04-2012
09:23 AM
|
0
|
0
|
3197
|
|
POST
|
Alternatively to the modification of the label by code, you can also change the MapLayerTemplate and add UIElement binded to any LayerItemViewModel property. One of the most useful property is the Layer property that allows accessing all layer properties. Example to display layer CopyrightText: <TextBlock Text="{Binding Layer.CopyrightText} /> For more complex scenario, we can also populate the Tag property by code and include it in the template: <TextBlock Text="{Binding Tag} />
... View more
09-04-2012
06:30 AM
|
0
|
0
|
2271
|
|
POST
|
The toolbar control has been removeed from version 3.0. You can still start with the 2.4 sample but we have to replace the toolbar control with your own control (that might be as simple as a StackPanel with Buttons inside). The handlers behind the buttons should still work.
... View more
09-04-2012
06:21 AM
|
0
|
0
|
2877
|
|
POST
|
It seems to be a performance issue because your input geometries are very heavy. By generalizing them, you will get better results: query.ReturnGeometry = true;
query.MaxAllowableOffset = 1000;
queryTask.ExecuteCompleted += queryTask_ExecuteCompleted;
... View more
09-04-2012
06:17 AM
|
0
|
0
|
488
|
|
POST
|
As the distance between 2 points is easy to calculate at client side, you can alternatively do the work at client side. I put a SL sample here (but not that easy to extent to others geometry types)
... View more
09-03-2012
09:20 AM
|
0
|
0
|
2013
|
|
POST
|
I am using 2.4 right now (I am waiting for the SL Viewer update before I upgrade). Do you happen to have an example of the LayerItem? I am very new to programming so I am not sure on how to do this. Thanks! I am thinking about something like: private void Legend_Refreshed(object sender, Legend.RefreshedEventArgs e) { if (e.LayerItem.Label == "SchoolZones") e.LayerItem.Label = "School Zones" }
... View more
08-30-2012
08:46 AM
|
0
|
0
|
927
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-12-2025 03:01 AM | |
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
10-30-2025
08:06 AM
|