|
POST
|
query.Geometry = f.Geometry; Did you verify in debug that f.Geometry is not null? That's supposed to be the spatial filter for your feature layer but, except if you set it explicitely, it's null. If you are sure that there is only one feature in your layer, you could try : query.Geometry = f.Graphics[0].Geometry;
... View more
07-16-2010
07:32 AM
|
0
|
0
|
514
|
|
POST
|
I didn't reproduce the issue. I tried with the overview window (which is a window panel) and the event MouseLeftButtonDown on a feature layer (perhaps not the right one?). Could you give more information on how to reproduce the issue? Thanks
... View more
07-16-2010
07:19 AM
|
0
|
0
|
806
|
|
POST
|
This thread http://forums.arcgis.com/threads/6481-Dynamically-change-color-of-a-symbol?highlight=symbol+binding could help (by replacing markersymbol by fillsymbol).
... View more
07-16-2010
06:55 AM
|
0
|
0
|
2125
|
|
POST
|
It should work with the where clause queryTask.Where = "1=1"; The sample http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AttributeQuery is doing that. You could also verify that your service is working well by using the REST api of your service. Something like http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5/query?where=1%3D1
... View more
07-16-2010
06:40 AM
|
0
|
0
|
319
|
|
POST
|
Did you see these threads http://forums.arcgis.com/threads/5090-Print-Button?highlight=print+silverlight and http://forums.arcgis.com/threads/5795-About-Printing-in-Pre-released-ArcGIS-10? Also in this thread : http://forums.arcgis.com/threads/7214-Tiled-Layers-skewed-north-west-when-printing-with-Silverlight-4?highlight=printdocument Lisa provided an application for previewing/printing a map.
... View more
07-15-2010
03:22 AM
|
0
|
0
|
2786
|
|
POST
|
You might change the visibility of your layer in the 'ExtentChanged' map event. To calculate the scale from the map resolution, see the scale discussion in the class reference for the Map class: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map.html
... View more
07-15-2010
03:14 AM
|
0
|
0
|
477
|
|
POST
|
Strange. So the problem is coming from the server and not from the SL API since the REST API returns an incomplete response. What is the response of the last request concerning the status of your job? In the sample it's : GET /ArcGIS/rest/services/SamplesNET/USA_Data_ClipTools/GPServer/ClipCounties/jobs/j3be38a36fe45408ba4da466d98743295/?f=json&_ts=634147921537343750 HTTP/1.1 { "jobId" : "j3be38a36fe45408ba4da466d98743295", "jobStatus" : "esriJobSucceeded", "results" : { "output_zip" : {"paramUrl" : "results/output_zip"}, "Clipped_Counties" : {"paramUrl" : "results/Clipped_Counties"} }, "inputs" : { "Input_Features" : {"paramUrl" : "inputs/Input_Features"}, "Linear_unit" : {"paramUrl" : "inputs/Linear_unit"} }, "messages" : [ {"type" : "esriJobMessageTypeInformative", "description" : "Submitted."}, {"type" : "esriJobMessageTypeInformative", "description" : "Executing..."}, {"type" : "esriJobMessageTypeInformative", "description" : "Succeeded."} ] }
... View more
07-15-2010
03:10 AM
|
0
|
0
|
1711
|
|
POST
|
I want a way to connect the visibility of the layer in the map service and the visibility of the feature layer that controls the map tips. So they work in concert with each other. Should not be too difficult by code : when you change the visibility of a dynamic map service sublayer, change at the same time the visibility of the associated feature layer. Or is there a way to connect map tips with a dynamic layer instead of a feature layer. No way to use maptips, but you could use an identify task (will avoid to load the features just to get maptips).
... View more
07-15-2010
02:55 AM
|
0
|
0
|
721
|
|
POST
|
Did you look at this thread http://forums.arcgis.com/threads/6355-beta-2.0-and-64-bit-Vista?highlight=install+x64+vista ?
... View more
07-15-2010
02:49 AM
|
0
|
0
|
1107
|
|
POST
|
Try escaping the point : "table_RTu\.Type_name" but without any guarantee becasue from my understanding your code should work, so...
... View more
07-15-2010
02:46 AM
|
0
|
0
|
478
|
|
POST
|
If you get this error in Blend only, it looks like the same issue than http://forums.arcgis.com/threads/3676-Error-message-explanation-needed
... View more
07-15-2010
02:33 AM
|
0
|
0
|
762
|
|
POST
|
One option is to use the datacontext of the layer TreeViewItem. You have to get the sublayer treeview item and go up the hierarchy to get the layer treeview item.
private TreeViewItem GetTreeViewItem(DependencyObject item)
{
while ((item = VisualTreeHelper.GetParent(item)) != null)
{
if (item is TreeViewItem)
return (TreeViewItem)item;
}
return null;
}
private void CheckBox_Click(object sender, RoutedEventArgs e)
{
CheckBox tickedCheckBox = sender as CheckBox;
TreeViewItem tviSubLayer = GetTreeViewItem(tickedCheckBox);
TreeViewItem tviLayer = tviSubLayer.GetParentTreeViewItem();
Layer layer = tviLayer.DataContext as Layer;
....... Now you can use all layer properties/methods
But this will not solve the second issue concerning the template which should be different for DynamicMapServiceLayer and for WMSLayer. As Silverlight doesn't support 'ItemTemplateSelector' nor 'DataType', it might not be that easy if your don't create your own hierarchical data stucture.
... View more
07-14-2010
04:59 AM
|
0
|
0
|
503
|
|
POST
|
If your graphics are coming from an identify task, you might remove the useless attributes by code by something like:
foreach (IdentifyResult identifyResult in args.IdentifyResults)
{
Graphic graphic = identifyResult.Feature;
graphic.Attributes.Remove("Shape");
graphic.Attributes.Remove("ObjectID");
}
Not sure it's the best way, but no other idea:)
... View more
07-14-2010
04:49 AM
|
0
|
0
|
791
|
|
POST
|
To get a vertical toolbar, you can edit the template: [INDENT]Open the project in Blend, rightclick the Toolbar and select to edit a copy of the template. Select the stackpanel called 'RootElement'. Change the orientation from Horizontal to Vertical. [/INDENT]But that doesn't allow to change the orientation at runtime. One option is to create your own ToolbarExt class derivating from the toolbar and to add an 'Orientation' property: Example C# code:
namespace ToolkitExt
{
public class ToolbarExt : Toolbar
{
public ToolbarExt()
{
this.DefaultStyleKey = typeof(ToolbarExt);
}
�??
public Orientation Orientation
{
get { return (Orientation)GetValue(OrientationProperty); }
set { SetValue(OrientationProperty, value); }
}
public static readonly DependencyProperty OrientationProperty =
DependencyProperty.Register("Orientation", typeof(Orientation), typeof(ToolbarExt), new PropertyMetadata(Orientation.Horizontal));
}
}
XAML code to put in generic.xaml file:
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:toolkitext="clr-namespace:ToolkitExt">
<Style TargetType="toolkitext:ToolbarExt">
<Setter Property="ToolbarItemClickEffect" Value="Bounce" />
<Setter Property="MaxItemHeight" Value="110" />
<Setter Property="MaxItemWidth" Value="110" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="toolkitext:ToolbarExt">
<StackPanel x:Name="RootElement" Background="Transparent" HorizontalAlignment="Center" Orientation="{TemplateBinding Orientation}"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
With this class you can initialize the orientation either in XAML or by code at run time.
... View more
07-14-2010
04:43 AM
|
0
|
0
|
894
|
|
POST
|
The parameterName is supposed to be given as argument of the method geoprocessorTask.GetResultImageLayerAsync. I guess you initialized it correctly. Which API version are you using? Are you using a proxy url?
... View more
07-14-2010
04:32 AM
|
0
|
0
|
1711
|
| 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
|