|
POST
|
You should be able to run multiple QueryTasks in a single or multiple thread.
... View more
07-02-2012
05:35 PM
|
0
|
0
|
973
|
|
POST
|
There's no event that gets raised before Update() is called. If FeatureLayer is Mode=OnDemand, you can use Map.ExtentChanging event. If your app calls Update() explicitly, then you can show progress bar before this call.
... View more
07-02-2012
05:16 PM
|
0
|
0
|
505
|
|
POST
|
There is a quick sample in this forum post: http://forums.arcgis.com/threads/46920-Migrating-Toolbars-to-2.3 ArcGIS API for Silverlight v3.0 supports ArcGIS Server 10.1 and below, so that means it's okay if you will be using ArcGIS Server 10 for awhile. We will also have support for both Silverlight 4 and Silverlight 5 when v3.0 goes final.
... View more
06-11-2012
12:22 PM
|
0
|
0
|
313
|
|
POST
|
You can follow these steps: http://resourcesbeta.arcgis.com/en/help/main/10.1/index.html#/Printing_maps_that_contain_secured_services/0154000005q3000000/. Once you have copied the ExportWebmap GP Tool as GP Service and configure the credentials on GP Tool, you can use the Url to this REST endpoint instead in your PrintTask.
... View more
06-11-2012
10:23 AM
|
0
|
0
|
1031
|
|
POST
|
Hmm. I was able to download and open the sample in VS 2010 (Version 10.0.40219.1 SP1Rel). I just had to update references and replace ScaleBar with ScaleLine. http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Scaleline
... View more
06-11-2012
09:29 AM
|
0
|
0
|
2375
|
|
POST
|
I did some shortcut here but I can bind to Map.Layers just by setting UserControl.DataContext
<UserControl x:Class="Forum.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
<Grid x:Name="LayoutRoot" Background="White">
<esri:Map WrapAround="True" x:Name="MyMap" Layers="{Binding Layers}"/>
</Grid>
</UserControl>
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
this.DataContext = new Model();
}
public class Model
{
public Model()
{
Layers = new LayerCollection();
Layers.Add(new ArcGISTiledMapServiceLayer() { Url = "http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" });
}
public LayerCollection Layers { get; set; }
}
}
... View more
06-11-2012
09:15 AM
|
0
|
0
|
1370
|
|
POST
|
When copying code from Silverlight SDK, you want to keep your class name for the constructor. For example if your XAML and CS file is named SilverlightApplication1 And you copied the following code, you need to replace SpatialQuery with your class name.
public SpatialQuery()
{
InitializeComponent();
//more code goes here
}
Also, while I cannot say a tentative release date of v3.0, if all goes well, it should be soon 🙂 Hopefully, this month.
... View more
06-11-2012
08:53 AM
|
0
|
0
|
2039
|
|
POST
|
I tried your renderer with the following map and it worked for me.
<esri:Map x:Name="MyMap" WrapAround="True" Background="White">
<esri:ArcGISTiledMapServiceLayer ID="PhysicalTiledLayer"
Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
<esri:GraphicsLayer ID="MyGraphics" Renderer="{StaticResource SelectRendererPoint}" MouseLeftButtonDown="GraphicsLayer_MouseLeftButtonDown">
<esri:GraphicsLayer.Graphics >
<esri:Graphic>
<esri:MapPoint X="-140.9" Y="63.391">
<esri:Geometry.SpatialReference >
<esri:SpatialReference WKID="4326" />
</esri:Geometry.SpatialReference>
</esri:MapPoint>
</esri:Graphic>
</esri:GraphicsLayer.Graphics>
</esri:GraphicsLayer>
</esri:Map>
private void GraphicsLayer_MouseLeftButtonDown(object sender, GraphicMouseButtonEventArgs e)
{
e.Graphic.Selected = !e.Graphic.Selected;
}
Did you set your Graphic.Geometry.SpatialReference? Is GraphicsLayer.Visible? Double check that you've associated the correct symbol with GraphicsLayer that has Point geometry.
... View more
06-08-2012
03:08 PM
|
0
|
0
|
905
|
|
POST
|
If you want all the fields to show in FeatureLayer MapTip, you can use the following code.
<esri:FeatureLayer ID="MyLayer" OutFields="*"
Url="yourServiceUrl">
<esri:FeatureLayer.MapTip>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ItemsControl ItemsSource="{Binding Keys}" Grid.Column="0" />
<ItemsControl ItemsSource="{Binding Values}" Grid.Column="1" />
</Grid>
</esri:FeatureLayer.MapTip>
</esri:FeatureLayer>
... View more
06-08-2012
03:02 PM
|
0
|
0
|
2649
|
|
POST
|
If you are using ArcGIS API for Silverlight API v2.2 and up, you can enable wrap around mode like so: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Map, this allows you to view map continuously. Compare with older version: http://help.arcgis.com/en/webapi/silverlight/2.1/samples/start.htm#Map. Check your project reference assembly path and version.
... View more
06-08-2012
02:58 PM
|
0
|
0
|
2039
|
|
POST
|
I tried the following sample:
xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
<Grid x:Name="LayoutRoot" Background="White">
<esri:Map x:Name="MyMap" WrapAround="True" Extent="-19902659.740859,7433864.95979339,-13792567.5107708,10986668.962042">
<esri:ArcGISTiledMapServiceLayer ID="BaseLayer"
Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />
<esri:FeatureLayer ID="Points"
Mode="OnDemand"
DisableClientCaching="True"
OnDemandCacheSize="0"
Url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0"
OutFields="*"/>
</esri:Map>
<Button Content="update" Click="Button_Click"
VerticalAlignment="Top" HorizontalAlignment="Center"/>
</Grid>
private void Button_Click(object sender, RoutedEventArgs e)
{
var l = MyMap.Layers["Points"] as FeatureLayer;
l.Update();
}
On Map.ExtentChanged, a query with where clause objectid NOT IN (<objectIDs in current extent>) is sent. If I click on button, features for current map extent is retrieved again (no NOT IN query). I assume you want to call FeatureLayer.Update()?
... View more
06-08-2012
12:14 PM
|
0
|
0
|
1714
|
|
POST
|
Labeling is not supported out of the box, you would have to use custom symbol or GraphicsLayer to show labels.
... View more
06-07-2012
09:57 AM
|
0
|
0
|
824
|
|
POST
|
You can take a look at this SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomSymbols. Specifically this code, you can use a different element here and set to a different attribute field, depending on the service.
<esri:SimpleRenderer x:Key="MapTipLabelMarkerRendderer">
<esri:SimpleRenderer.Symbol>
<esri:MarkerSymbol OffsetX="6" OffsetY="6">
<esri:MarkerSymbol.ControlTemplate>
<ControlTemplate>
<Grid>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="MouseOver">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="labelOnHover"
Storyboard.TargetProperty="Visibility"
Duration="0">
<DiscreteObjectKeyFrame KeyTime="0">
<DiscreteObjectKeyFrame.Value>
<Visibility>Visible</Visibility>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
<DoubleAnimation From="0" To="1" Storyboard.TargetName="labelOnHover"
Storyboard.TargetProperty="Opacity"
Duration="0:0:.25" />
</Storyboard>
</VisualState>
<VisualState x:Name="Normal" />
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<!--Marker-->
<Ellipse Width="12" Height="12" Fill="Red"
HorizontalAlignment="Left" VerticalAlignment="Top" />
<!--Label-->
<Grid Margin="8,-8,0,0" x:Name="labelOnHover" Visibility="Collapsed"
HorizontalAlignment="Left" VerticalAlignment="Top" >
<!--Text halo using a white blurred text-->
<TextBlock Foreground="White" FontWeight="Bold" Text="{Binding Attributes[AREANAME]}" >
<TextBlock.Effect>
<BlurEffect Radius="5" />
</TextBlock.Effect>
</TextBlock>
<!--Text-->
<TextBlock Foreground="Black" FontWeight="Bold" Text="{Binding Attributes[AREANAME]}" />
</Grid>
</Grid>
</ControlTemplate>
</esri:MarkerSymbol.ControlTemplate>
</esri:MarkerSymbol>
</esri:SimpleRenderer.Symbol>
</esri:SimpleRenderer>
... View more
06-07-2012
09:56 AM
|
0
|
0
|
620
|
|
POST
|
You need to enable "Editing" when publishing your service. I think your follow-up question is for server team, you can check this resource though: http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Publishing_feature_services/009300000022000000/
... View more
06-07-2012
09:52 AM
|
0
|
0
|
1398
|
|
POST
|
Sure, you can set the following properties: DisableClientCaching=True http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer~DisableClientCaching.html OnDemandCacheSize=0 http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer~OnDemandCacheSize.html
... View more
06-07-2012
09:49 AM
|
0
|
0
|
1714
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 1 | 09-11-2025 01:30 PM | |
| 1 | 06-06-2025 10:14 AM | |
| 1 | 03-17-2025 09:47 AM | |
| 1 | 07-24-2024 07:32 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|