|
POST
|
Is that possible first of all? Sure : see sample http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SubLayerList
<CheckBox Margin="2" Name="{Binding LayerIndex}" Content="{Binding LayerName}"
Tag="{Binding ServiceName}" IsChecked="{Binding Visible}"
ClickMode="Press" Click="CheckBox_Click" />
From SL4, binding to the name property is no more working. The sample has been adapted in order not to use this binding.
... View more
07-02-2010
01:15 AM
|
0
|
0
|
672
|
|
POST
|
...because you are binding from a non-UIElement. Looks like a good explanation, Thanks Morten PS : I thought SL4 had extended some binding possibilities to non UI elements but obviously not until this case.
... View more
07-01-2010
09:03 AM
|
0
|
0
|
739
|
|
POST
|
In my example 'Attributes' was the path to the dictionary but I was more thinking to an usage with a feature data grid. With a maptip, it should rather be 'Path=.' because the framework sets the maptip datacontext to the Attributes dictionary itself. So:
NavigateUri="{Binding Path=., Converter ={StaticResource uriDictConverter}, ConverterParameter=UrlField}"
The converter will get the dictionary as input value and the Url attribute as ConverterParameter. The converter should be something like (not tested):
public class UriDictionaryConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
IDictionary<string, object> dict = value asIDictionary<string, object>;
String urlField = parameter as String;
if (dict != null)
{
if (dict.ContainsKey(urlField))
return Uri("http://Myserver/" + dict[urlField]);
}
return null;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
... View more
07-01-2010
09:00 AM
|
0
|
0
|
2551
|
|
POST
|
the first is showing the layer info, the second showing the result of the query. i get the same error. So it's not a Silverlight API issue :cool: .... but anyway an issue:confused: The only strange thing I saw in your screenshots is that the Display Field is 'ProjectName', I thought it should be 'GIS_Info.ProjectName'. Likely this doesn't explain your issue but could worth the try to reinitialize the display field in ArcMap before publishing the service. Other question : Is 'Open Attribute Table' working well on this layer in ArcMap ? you are correct, the SHAPE field was hidden. unhiding it seems to resolve that particular issue. odd that ID and Find tasks returned geometry, isn't it? If though as well that ID and Find tasks would not return geometry if SHAPE field was hidden, but...
... View more
07-01-2010
08:26 AM
|
0
|
0
|
1500
|
|
POST
|
Reverse the orientation of the binding:
<esri:Map x:Name="MyMap" Extent="-120,20,-90,60" Grid.Row="0">
<esri:ArcGISTiledMapServiceLayerID="StreetMapLayer"
Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_ShadedRelief_World_2D/MapServer"
Visible="True"/>
<esri:ArcGISDynamicMapServiceLayer ID="DynamicLayer" Opacity="0.6"
Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer"
Visible="False" />
</esri:Map>
<StackPanel Orientation="Horizontal" Grid.Row="1">
<RadioButton x:Name="rbtn01" IsThreeState="False" IsChecked="{Binding Layers[0].Visible, ElementName=MyMap, Mode=TwoWay}"
Content="World 2D Map" Margin="5" GroupName="MapLayers" />
<RadioButton x:Name="rbtn02" IsThreeState="False" IsChecked="{Binding Layers[1].Visible, ElementName=MyMap, Mode=TwoWay}"
Content="USA Map" Margin="5" GroupName="MapLayers"/>
</StackPanel>
That being said, I can't explain why it's not working other way....
... View more
07-01-2010
08:12 AM
|
0
|
0
|
739
|
|
POST
|
You might use the Layers property of the ArcGISMapServiceLayer (see doc http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~Layers.html) The LayerInfo of a group layer is returning its SubLayerIDs which is useful to build the TOC.
... View more
07-01-2010
08:07 AM
|
0
|
0
|
429
|
|
POST
|
Probably not easy to chain 2 converters. The problem is that the 'Binding' class is not a Dependency Object so it's not possible to bind a ConverterParameter. My suggestion is you to integrate the dictionary converter inside the uriConverter. So you would get an UriDictConverter: NavigateUri="{Binding Attributes, Converter ={StaticResource uriDictConverter}, ConverterParameter=UrlField}"
Likely, there are better solutions. Any other ideas?
... View more
07-01-2010
01:08 AM
|
0
|
0
|
2551
|
|
POST
|
is querying a joined table not supported It is supported and it's generally working. I can't reproduce your issue. Is your query working if you are just using the REST API? sometimes geometry is returned, other times it is not This can happen if the SHAPE field is not visible. I guess it's not your case if find task is working but worth the verification. Else same question, is it working with the REST API only?
... View more
07-01-2010
12:58 AM
|
0
|
0
|
1500
|
|
POST
|
With ArcGIS Silverlight API, the bookmarks (name and extent) are stored in the isolated storage at application level.
... View more
07-01-2010
12:48 AM
|
0
|
0
|
375
|
|
POST
|
The fix should be in 2.0 final (to confirm by Morten).
... View more
07-01-2010
12:47 AM
|
0
|
0
|
1094
|
|
POST
|
You are right, it is the same issue. For the moment, the best workaround is to unset SnapToLevels bu it should be fixed for final.
... View more
07-01-2010
12:45 AM
|
0
|
0
|
1647
|
|
POST
|
Looks the same error than http://forums.arcgis.com/threads/7242-Exception-on-Draw.IsEnabled-true From my tests, it could happen more frequently if SnapToLevels map property is set to true. Is it your case? If it is, a workaround might to set SnapToLevels to false.
... View more
06-30-2010
06:00 AM
|
0
|
0
|
1094
|
|
POST
|
My bad. MagnifyingGlass Layer property is of type Layer and not TiledMapServiceLayer --> Need a cast:
((ArcGISTiledMapServiceLayer)MyMagnifyingGlass.Layer).Url = .....
Sorry about the mistake.
... View more
06-30-2010
02:25 AM
|
0
|
0
|
1443
|
|
POST
|
Looks like you are closing the preview window too early. If you move the code 'this.DialogResult = true;' to the event EndPrint : it's working well. If you don't want to see the preview window during the print you can collapse it 'this.Visibility = Visibility.Collapsed;' -> it's still working.
... View more
06-29-2010
09:21 AM
|
0
|
0
|
1358
|
|
POST
|
Looks like your issue is depending on the spatial reference of your map. Perhaps you might try with a web mercator tiled layer : http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer Normally it should work whatever the spatial reference but...
... View more
06-29-2010
12:11 AM
|
0
|
0
|
364
|
| 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
|