|
POST
|
I just added a sample with a class extension allowing to get a linear position along a line and to split up a polyline into a line between 2 linear positions.
... View more
08-13-2012
06:09 AM
|
0
|
0
|
1217
|
|
POST
|
[INDENT]You can reorganize legend layer items on event Legend.Refreshed. I created a sample demonstrating how we can move the feature layer item from the root to the hierarchy of the dynamic layer items. Hope this helps. [/INDENT]
... View more
08-07-2012
04:12 AM
|
0
|
0
|
948
|
|
POST
|
You can reorganize legend layer items on event Legend.Refreshed. I created a sample demonstarting how we can move the feature layer item from the root to the hierarchy of the dynamic layer items. Hope this helps.
... View more
08-07-2012
04:02 AM
|
0
|
0
|
1024
|
|
POST
|
When using the I'm getting Mircosoft.Expression.Interactions assembly that comes with Expression Blend 5/ Silverlight 5 it breaks the new ESRI TabbedRibbon Template. I'm getting an error stating: "The type 'ChangePropertyAction' from assembly 'Mircosoft.Expression.Interactions' is built with an older version of the Blend SDK, and is not support in a Silverlight 5 project. Likely a version mismatch in your referenced dlls. Double check the version of your dlls: Esri dlls version should be : 3.0.0.388 Others dlls : 5.0.5.0
... View more
08-07-2012
01:43 AM
|
0
|
0
|
1263
|
|
POST
|
Despite not supported for now, from my tests it's working well and it's possible to create a Silverlight map application with Visual Studio 12. The only restriction I noticed is that there is no integration of the mapapplication templates in the IDE. So to create a map application you have either to start from scratch or from an existing map application.
... View more
08-07-2012
01:37 AM
|
0
|
0
|
1639
|
|
POST
|
Sorry I though you wanted the symbology of individual graphics in the Legend Now I see. You want the symbol for large clusters. There is nothing out of the box to do it. However you can add by code one (or more) legend Items in the event Legend.Refreshed. To create a new legend item, you need basically, the label and the image that you want to see in the legend.
... View more
08-07-2012
12:59 AM
|
0
|
0
|
1920
|
|
POST
|
Try: private static string GetValue(FrameworkElement frameworkElement) { return frameworkElement == null ? null :( frameworkElement is TextBlock ? (frameworkElement as TextBlock).Text : frameworkElement.ToString()); }
... View more
08-07-2012
12:54 AM
|
0
|
0
|
3613
|
|
POST
|
You can use the Data member to store the attributesToDisplay. Something like:
var fieldsToDisplay = new List<string>() { "OBJECTID", "Projekt", "Laufzeit", "Ansprechpa" };
foreach (IdentifyResult result in results)
{
Graphic feature = result.Feature;
string title = result.Value.ToString() + " (" + result.LayerName + ")";
var attributesToDisplay = new Dictionary<string, object>();
foreach (var item in feature.Attributes)
if(fieldsToDisplay.Contains(item.Key))
attributesToDisplay[item.Key]= item.Value;
_dataItems.Add(new DataItem()
{
Title = title,
Data = attributesToDisplay
});
}
... View more
08-03-2012
02:06 AM
|
0
|
0
|
1032
|
|
POST
|
I have legend like this below - but issue is main root element 'Group Layer' is not being checked in legend control of the application. But this is checked in map document. I would need more infos about: - what kind of layer is your 'Group Layer' (is it a Group Layer Collection or a sub group layer inside a DynamicMapServiceLayer?) - the meaning of 'is not being checked in legend control' : by default there is no checkbox in the legend. You can customize it to add checkboxes but in this case I need to know how you binded that checkbox. If for example you binded your checkbox to LayerItemViewModel.IsEnabled and if your layer is a group layer collection, the checkbox represents the group layer visibility so you should not be able to have a group layer visible in the map and not checked in the legend.
... View more
08-03-2012
12:00 AM
|
0
|
0
|
676
|
|
POST
|
foreach (IdentifyResult result in results) { Graphic feature = result.Feature; string title = result.Value.ToString() + " (" + result.LayerName + ")"; _dataItems.Add(new DataItem() { Title = title, Data = feature.Attributes }); var fieldsToDisplay = new List<string>() { "OBJECTID", "Projekt", "Laufzeit", "Ansprechpa" }; var attributesToDisplay = new Dictionary<string, object>(); foreach (var item in feature.Attributes) if(fieldsToDisplay.Contains(item.Key)) attributesToDisplay[item.Key]= item.Value; IdentifyDetailsDataGrid.ItemsSource = attributesToDisplay; } Looks like you initialize IdentifyDetailsDataGrid.ItemsSource in the loop so each dictionary with the attributes to display is overwriting the previous one. I think you have to store attributesToDisplay in your DataItem class and to reuse it to set ItemsSource in the SelectionChanged event.
... View more
08-02-2012
11:50 PM
|
0
|
0
|
1032
|
|
POST
|
If your project doesn't comple, likely you forgot to change a namespace somewhere. Check that all .cs files are using the right namespace (namespace SeaLevelRise { ......). Check also that Toolbar.Theme.xaml is using that namespace as well. Else no idea...
... View more
07-24-2012
11:30 AM
|
0
|
0
|
2215
|
|
POST
|
A.2 layer is visble in map. But A.2 has been removed successfully on legend refreshed event Removing a layerItem from the legend doesn't change anything for the layer or sublayer visibility in the map. You have to do it by code at the same time you remove the layerItem. Something like: foreach (var pair in toDeletes) { var parentLayerItem = pair.Item1; var layerItemToDelete = pair.Item2; parentLayerItem.LayerItems.Remove(layerItemToDelete); Layer layer = parentLayerItem.Layer; int subID = layerItemToDelete.SubLayerID; if (layer is ISublayerVisibilitySupport && subID > 0)* (layer as ISublayerVisibilitySupport).SetLayerVisibility(subID, false); parentLayerItem.Layer.SetSublayerViisbility(layerItemToDelete.SublayerId, false); }
... View more
07-24-2012
11:23 AM
|
0
|
0
|
2858
|
|
POST
|
My suggestion is : 1) Do a query with Intersects relationship (i.e the default). This query will return all lines that could be counted for the polygon 2) From the list of lines, create a list of points that will be used as reference for each line (i.e the midpoint, or the end point or whatever depending on your need). 3) Use an intersect task to get the insersection between the polygon and this list of points. This task returns a list of graphics (the exact same number than in the initial list) but if a point doesn't intersect the polygon, the returned graphic will have a null geometry and extent. 4) Sum the line length for each line that has a corresponding non null graphic.
... View more
07-24-2012
11:07 AM
|
0
|
0
|
1496
|
|
POST
|
this is because the default is using INTERSECTS instead of CONTAINS You can set the SpatialRelationShip to define the spatial relationship to be applied while performning the query. 'Intersects' is the default but that can be changed. That being said it's probably not that useful in your case since the lines crossing 2 polygons would no more be counted (instead of being double counted). It's depending on your need. For a line crossing 2 polygons, do you want to count the total line length with one polygon (e.g based on the line midpoind) or to split the length in 2 parts, one for each polygon? In the second case, you can use the Intersect method of a geometry service that will clip your lines based on your polygon. You can then count the total length based on the clipped lines. In the first case, you can also use the Intersect method but just to know if the midpoint of the line is inside the polygon and then affect the line length accordingly. Hope this helps.
... View more
07-24-2012
12:38 AM
|
0
|
0
|
1496
|
|
POST
|
You are right the renderers are part of LayerDrawingOptions and not of DynamicLayerInfos as I suggested. To get the renderers defined at server side you can use GetDetails or GetAllDetails. Additionaly you can create new renderers by using the GenerateRendererTask. There is a sample here. Sorry for the confusion.
... View more
07-24-2012
12:17 AM
|
0
|
0
|
2683
|
| 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
|