|
POST
|
Once again, thank you very much Dominique! You are welcome. I didn't notice early but you are using the REST end point http://www.arcgis.com/sharing while the recommended is http://www.arcgis.com/sharing/rest (see Remarks section in doc). Probably not a problem for what you are doing today but may be a problem for future. Sidenote : As arcgis.com is the default URL, you could as well pass a null Url: _Portal.InitializeAsync(null, (p, ex) => .......
... View more
08-21-2012
06:44 AM
|
0
|
0
|
1649
|
|
POST
|
What kind of service is it? If it's a cached map service, you can't turn on/off the sublayers since the images are pregenerated and stored at the server side.
... View more
08-21-2012
06:27 AM
|
0
|
0
|
1308
|
|
POST
|
BasemapGalleryGroupQuery is just returning the groups that drive the gallery of basemaps, it's not directly returning the basemaps. After getting the groups, you have to chain to another query looking for the items shared with the group. Alternatively you can directly use SearchBasemapGalleryAsync which is doing that job for you.
... View more
08-20-2012
10:59 PM
|
0
|
0
|
1649
|
|
POST
|
I have labels from a tiled map service on the map that I would like to add to the legend so the labels can be turned on and off. Sublayers of a tiled map service can't be turned on/off at runtime, the reason being that the images of the cached map services are pregenerated and stored at the server side and so are only depending on the service definition.
... View more
08-20-2012
10:48 PM
|
0
|
0
|
1010
|
|
POST
|
This Rex' Blog post about 'Sending geoemetry between Silverlight and Server' might help.
... View more
08-20-2012
10:45 PM
|
0
|
0
|
656
|
|
POST
|
if (e.PropertyName == "MySelectionGraphicsLayer" && MyDataGrid.SelectedGraphics.Count == 1) MessageBox.Show(MyDataGrid.SelectedGraphics.First().Attributes["NAME"].ToString()); You don't have to change the name of the property. It's predefined : "SelectedGraphics" So: private void GraphicsLayer_PropertyChanged(object sender, PropertyChangedEventArgs e) { if (e.PropertyName == "SelectedGraphics" && MyDataGrid.SelectedGraphics.Count == 1) MessageBox.Show(MyDataGrid.SelectedGraphics.First().Attributes["NAME"].ToString()); } and don't forget to wire up the GraphicsLayer_PropertyChanged handler in XAML.
... View more
08-20-2012
01:54 PM
|
0
|
0
|
1247
|
|
POST
|
You are right to change setting in IE. but It would be nearly impossible to tell everyone to make these changes for their own browsers. Please let me know if am wrong. If i am right, any work around to solve this? The easiest way would be to migrate the server to 10SP1 or 10.1. But probably not easy either. Else I don't think the legend control can work with the secured arcgis.com REST end point. You could adapt the legend control by yourself (should not be that difficult). Source code is here :http://esrisilverlight.codeplex.com/ Sorry no better ideas for now.
... View more
08-20-2012
01:51 PM
|
0
|
0
|
1180
|
|
POST
|
Maybe depending on the order the SelectionChanged events are fired. When the datagrid selection changes, the graphics layer may have not changed yet (likely the toolkit subscribes to this event as well in order to change the graphics selection). It might be more accurate to use the PropertyChanged event of the GraphcisLayer. Something like: private void GraphicsLayer_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
if (e.PropertyName == "SelectedGraphics" && MyDataGrid.SelectedGraphics.Count == 1)
MessageBox.Show(MyDataGrid.SelectedGraphics.First().Attributes["NAME"].ToString());
}
... View more
08-20-2012
09:50 AM
|
0
|
0
|
1247
|
|
POST
|
<!These two dont work!> <TextBlock Text="{Binding Extent[XMax]}" FontSize="44" /> <TextBlock Text="{Binding Geography[Extent]}" FontSize="44" /> To get the geometry extent as text in your list box, you can use : <TextBlock Text="{Binding Geometry.Extent}" FontSize="44" /> That being said I am not sure to understand what you need to do, so not sure that helps.
... View more
08-20-2012
01:52 AM
|
0
|
0
|
767
|
|
POST
|
To enable mixed content in IE9 you can change the security settings : In Internet Explorer, click the Tools button, and then click Internet Options. Click the Security tab, and then click the Custom Level button. In the Security Settings dialog box, scroll to the Display mixed content setting in the Miscellaneous section, and then click Enable. Click OK in the Security Settings dialog box, and then click OK to exit Internet Options. That being said, it's strange you get this message with the legend. From ArcGIS 10SP1, the legend is provided by the map service and the legend images are encapsulated in the json answer. Which ArcGIS server version are you using? To better understand what happens, I suggest you use fiddler to look at the requests sent to the server.
... View more
08-20-2012
01:36 AM
|
0
|
0
|
1180
|
|
POST
|
If you come back to your ItemSources set to the Features: dg1.ItemsSource = gpLayer.FeatureSet.Features; you should be able to bind your columns by using the Attributes dictionary: <sdk:DataGridTextColumn Binding="{Binding Path=Attributes[OID]}" Header="OID"/>
... View more
08-20-2012
01:30 AM
|
0
|
0
|
4784
|
|
POST
|
Unfortunaltely ths bug was discovered too late for 3.0 and will be fixed in the next version (3.1)
... View more
08-20-2012
01:26 AM
|
0
|
0
|
770
|
|
POST
|
The new ArcGIS Runtime SDK for WPF supports disconnect scenarios. You might get better answers by posting your questions into the WPF forum.
... View more
08-20-2012
01:23 AM
|
0
|
0
|
647
|
|
POST
|
The Portal API, new at 3.0, is what you need to access web maps stored in arcgis.com (documentation) There is a sample here : http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#PortalMetadata
... View more
08-20-2012
01:16 AM
|
0
|
0
|
1649
|
|
POST
|
As a graphic contains an UI element, it needs to be created in the UI thread. If you have lot of calculated attributes, you can do it in a background thread but you need to store the results in an intermediate structure. Then you need to come back to the UI thread to create the graphics.
... View more
08-20-2012
01:09 AM
|
0
|
0
|
702
|
| 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
|