|
POST
|
can anybody help me to solve my issue permanent? Sorry I can't hlp on this matter. It's definitively not a Silverlight issue and I don't figure out how a service can switch from non secured to secured without action at server side. But you might have more chance to get an answer by posting your question on the server forum. Good Luck.
... View more
03-26-2014
02:03 AM
|
0
|
0
|
1994
|
|
POST
|
You have to set EnableDynamicLayers to true in order to be able to change the renderer or the labelling of local dynamic layers. <esri:ArcGISLocalDynamicMapServiceLayer Path="States.mpk" EnableDynamicLayers="True">
..... Then make sure that the field NAME1 does exist: <esri:LabelClass LabelExpression="[NAME1]" > else the labelling won't work. For testing purpose, you can set an hardcoded expression not depending on field names such as: <esri:LabelClass LabelExpression=""TEST"" >
... View more
03-25-2014
04:22 AM
|
0
|
0
|
3448
|
|
POST
|
Yes, the exact same exception Strange. CreateRenderSurface is not supposed to be called when UseAcceleratedDisplay is false. How to you set UseAcceleratedDisplay? May be a binding that would kick in too late might explain the issue. Note: it's also worth trying without setting UseAcceleratedDisplay since the default value is false.
... View more
03-25-2014
02:02 AM
|
0
|
0
|
1959
|
|
POST
|
Hi, thanks for replying. I have followed the sample you gave me, and it works fine. But now i have lost functionality of the legend when check/uncheck the group layer check box which the feature layer became its child after the replacement. Should i handle it myself now? or there is something else i could do? Yes. That's the drawback, The feature layer is artificially placed in the dynamic layer legend hierarchy but is not following the same rules concerning the scale range and the visibility. For the scale range, you can define the feature layer with the same scale range as the sublayer it replaces. That should solve the scale range issue. For the visibility, you could by code link the feature layer visibility to the visibility of the dynamic layer and the visibility of the group layer. For example after making _groupLayerItem a member variable, define a method UpdateFeatureLayerVisibility as void UpdateFeatureLayerVisibility()
{
if (_featureLayerItem != null && _groupLayerItem != null)
_featureLayerItem.IsEnabled = _groupLayerItem.Layer.Visible && _groupLayerItem.IsEnabled;
} and call this method when the layer or group layer visibility changes: if (subLayerItem != _featureLayerItem) // else replacement already done
{
dynamicLayerItem.Layer.PropertyChanged += (s, evt) =>
{
if (evt.PropertyName == "Visible")
UpdateFeatureLayerVisibility();
};
((ISublayerVisibilitySupport)dynamicLayerItem.Layer).VisibilityChanged += (s, evt) => UpdateFeatureLayerVisibility();
......
That being said, it will become more complex if you want to manage multi group layer levels and multiple feature layers so I may not recommend this approach, but if this can help for a selective and specific need....
... View more
03-25-2014
01:38 AM
|
0
|
0
|
1112
|
|
POST
|
Your binding to the Map is wrong. Instead of:
Map="{Binding ElementName=Map,Path=Layers.[CASABLANCALAYER].Layers}"
try
Map="{Binding ElementName=Map}"
... View more
03-25-2014
12:49 AM
|
0
|
0
|
452
|
|
POST
|
It might be a problem with the Silverlight URL restrictions, Please check if you miss something to help you out from here http://msdn.microsoft.com/en-us/library/cc189008%28v=vs.95%29.aspx For example Image doesn't allow cross scheme access.
... View more
03-25-2014
12:47 AM
|
0
|
0
|
1381
|
|
POST
|
The maptip is not in the same namespace as the main window so you can't use the element name this way. Instead use the datacontext which is set with the dictionary of attributes. Something like: var button = sender as Button;
var attributes = button.DataContext as IDictionary<string, object>;
var currentName = attributes["Name"].ToString();
....
... View more
03-21-2014
07:19 AM
|
0
|
0
|
649
|
|
POST
|
The sample you pointed out has not been adapted to 10.2.2 yet and is still using 10.1.1. To fix that in VisualStudio, Unload the project, Edit it and Change all references to '10.1.1' to '10.2.2'
... View more
03-21-2014
01:52 AM
|
0
|
0
|
1274
|
|
POST
|
Hi, I have an arcGISDynamicMapService which i took one of its childLayer and made it invisible. also added it as FeatureLayer to my map. The legend is showing me both the hidden layer and the featureLayer - i want to change bindings of this specific layer only in order to influence only the feature layer visibility and keep the original layer hidden. (But keep the regular bindings to the other layers) Note: i have removed the featureLayer from legend - i want the user see it in the original service hierarchy. Any ideas? This sample may help. The idea is on event Legend.Refreshed to remove the unexepected legend items and to reorganize them.
... View more
03-21-2014
01:20 AM
|
0
|
0
|
1112
|
|
POST
|
may be something like: query.Where = "id_event IN (" + string.Join(",", codes) + ")";
... View more
03-21-2014
12:43 AM
|
0
|
0
|
530
|
|
POST
|
The feature layers are supposed to show up in the legend as others layers. The interactive SDK Legend Sample demonstrates an example of feature layer in the legend ('Points of Interest'). Might be you redefined the legend style in your application that would overwrite the default. Check in app.xaml. Else could you provide a repro case with public services? Thanks
... View more
03-21-2014
12:40 AM
|
0
|
0
|
594
|
|
POST
|
But Pls note recently only It is asking for Login. Till two weeks back when I access the service ,It was not ask for login. I didnt made any changes in the ESRI services Or Not did any setting changes in ESRI 10.01 Server.Only Windows update doing in the server system. If the secured service is not expected, you should contact your server administrator to come back to a non secured service. Anyway the issue is coming from the server side and not from the client side and SL.
... View more
03-20-2014
12:03 AM
|
0
|
0
|
9959
|
|
POST
|
In order not to see the label you can set the LabelClasses to null. For example starting from the dynamic labelling sample, you can toggle the labels visibility with code like: private LabelClassCollection _labelClasses; private void ToggleLabels_OnClick(object sender, RoutedEventArgs e) { ArcGISDynamicMapServiceLayer dynamicLayer = MyMap.Layers["PopulationDynamicLayer"] as ArcGISDynamicMapServiceLayer; if (_labelClasses == null) { _labelClasses = dynamicLayer.LayerDrawingOptions[0].LabelClasses; dynamicLayer.LayerDrawingOptions[0].LabelClasses = null; } else { dynamicLayer.LayerDrawingOptions[0].LabelClasses = _labelClasses; _labelClasses = null; } dynamicLayer.Refresh(); }
... View more
03-19-2014
11:04 AM
|
0
|
0
|
546
|
|
POST
|
I don't get where is the 'ArcGIS API fo Silverlight' involved in this issue? I can only recommend the MSDN documentation about SL trusted applications and their restrictions.
... View more
03-19-2014
10:38 AM
|
0
|
0
|
534
|
|
POST
|
Can anybdy help me Pls... I am wondered Y this error happened suddenly. Without changing the code ,Is it possible to solve the issue... As your services are no more working without any clear explanations, first thing is to check that the issue is effectively coming from a secured service. Try to access to the service using a browser and check if you need to login to access to it.
... View more
03-19-2014
10:29 AM
|
0
|
0
|
9959
|
| 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
|