|
POST
|
This sample might be a little outdated but hopefully it can help you get started: http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&scriptID=16196 The following links can also be retrieved from API Reference in the SDK sample page (http://esriurl.com/slsdk2 http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.TiledMapServiceLayer.html http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.TiledLayer.html
... View more
11-12-2010
08:54 AM
|
0
|
0
|
661
|
|
POST
|
I was able to reproduce this too with v2.1 RC. The fix will be in for the next release. Thank you.
... View more
11-12-2010
08:49 AM
|
0
|
0
|
1499
|
|
POST
|
What error message do you get? Please try to use Fiddler to see that the GP parameters are correct and that you can run the same job from the web browser. It should be similar to the steps described in post #14 on this thread: http://forums.arcgis.com/threads/14730-Area-And-Perimeter Run Fiddler and your SL app.
... View more
11-12-2010
08:35 AM
|
0
|
0
|
1218
|
|
POST
|
I think you can call ProjectAsync() with the following WKT http://spatialreference.org/ref/epsg/26917/esriwkt/ You can look at this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Project
... View more
11-12-2010
08:29 AM
|
0
|
0
|
416
|
|
POST
|
I still cannot reproduce this with your code, even when I make the size of my window small enough so that some part of the TimeSlider is about to get cut off. I'm not sure if adding extra margin caused this because StackPanel and Grid have margin of 10. But I tried your code and did not see any problem with how it looks like on WPF4. However I don't know what size your DraggableWindow is or if it also has additional margins, padding or if it calculates its size at run-time when other elements get loaded. At any case, this should not be happening because if you look at the default template for the TimeSlider in Expression Blend, the 3 buttons (play, previous and next) get "Auto" size on the Grid. And the tick bar section takes whatever is left over after these 3 buttons have already taken the their place in the Grid. I also tried removing the height/width of the TimeSlider and what I see are just the 3 buttons the application still run fine.
... View more
11-12-2010
08:20 AM
|
0
|
0
|
2606
|
|
POST
|
Can you try running the query outside of your SL app? Please refer to post #14 in this thread (http://forums.arcgis.com/threads/14730-Area-And-Perimeter). You should be able to access your service from the web browser and see if any features are returned. Maybe you just need to update your query. Does it go to failed event? or returns empty result?
... View more
11-12-2010
07:42 AM
|
0
|
0
|
707
|
|
POST
|
Thank you for sharing us this information. While our test did not yield to the same sluggishness as in the video, we were able to make a comparison between the two API versions. We will try to get this fixed in the future release. Thanks.
... View more
11-11-2010
02:49 PM
|
0
|
0
|
1499
|
|
POST
|
I cannot replicate this with the DefaultStyle of the TimeSlider. Did you by any chance applied a custom style? Can you also share your XAML-code on how you define the TimeSlider?
... View more
11-11-2010
01:18 PM
|
0
|
0
|
2606
|
|
POST
|
Yes that is correct, the dynamic layer will return Progress of 100 when the image is returned.
... View more
11-11-2010
11:30 AM
|
0
|
0
|
858
|
|
POST
|
This might be what you need http://russelleast.wordpress.com/2010/02/27/using-wcf-async-pattern-with-silverlight-3/ This is from MSDN http://msdn.microsoft.com/en-us/library/ms731177.aspx
... View more
11-11-2010
10:58 AM
|
0
|
0
|
760
|
|
POST
|
You can make use of MapProgressBar from the Toolkit (http://help.arcgis.com/en/webapi/silverlight/2.1/samples/start.htm#MapProgressBar or simply subscribe to Map's Progress
... View more
11-11-2010
10:47 AM
|
0
|
0
|
858
|
|
POST
|
I dont know if this would solve your problem but what you can do is query the FeatureService and in the QueryTask_ExecuteCompleted update a GraphicsCollection (In the sample-code below, use the same instance as MyGraphicCollection).
<Grid.Resources>
<esri:GraphicCollection x:Key="MyGraphicCollection"/>
<!--more code goes here -->
</Grid.Resources>
<!--more code goes here -->
<esri:GraphicsLayer ID="MyGraphicsLayer"
Graphics="{Binding Source={StaticResource MyGraphicCollection}, Path=Graphics}" Renderer="{StaticResource MyRenderer}"/>
... View more
11-11-2010
10:31 AM
|
0
|
0
|
1548
|
|
POST
|
Have you looked at this blog: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/03/11/Sending-geometry-between-Silverlight-and-the-server-using-WCF.aspx
... View more
11-11-2010
10:18 AM
|
0
|
0
|
760
|
|
POST
|
You don't want to update the attributes in code-behind? (i.e. graphic.Attributes["STATE"] = "California")
... View more
11-11-2010
10:15 AM
|
0
|
0
|
1548
|
|
POST
|
If you are using SL4, the only way I could think of about doing this is as follows:
<TextBox Width="50" Text="{Binding [STATE_NAME], Mode=TwoWay}" DataContext="{Binding ElementName=MyMap, Path=Layers[MyGraphics].Graphics[0].Attributes}"/>
Where MyMap is the name of my map, MyGraphics is the ID of my Layer, and Graphics[0] is expected to exist. This is the sample, I placed breakpoint on MouseLeftButtonDown to inspect the Attributes. You can also do a MessageBox.Show() on e.Graphic.Attributes["STATE"] to see that it matches your TextBox. It's not a pretty solution because each TextBox would have to represent a field for one of the graphics. <Grid x:Name="LayoutRoot" Background="White">
<Grid.Resources>
<esri:SimpleMarkerSymbol x:Key="RedMarkerSymbol" Color="Red" Size="12" Style="Circle" />
</Grid.Resources>
<esri:Map x:Name="MyMap" Background="White">
<esri:ArcGISTiledMapServiceLayer ID="PhysicalTiledLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/NPS_Physical_World_2D/MapServer"/>
<esri:GraphicsLayer ID="MyGraphics" MouseLeftButtonDown="GraphicsLayer_MouseLeftButtonDown">
<esri:GraphicsLayer.Graphics >
<esri:Graphic Symbol="{StaticResource RedMarkerSymbol}" >
<esri:MapPoint X="-140.9" Y="63.391" />
</esri:Graphic>
</esri:GraphicsLayer.Graphics>
</esri:GraphicsLayer>
</esri:Map>
<StackPanel VerticalAlignment="Top" HorizontalAlignment="Center" >
<TextBox Width="50" Text="{Binding [STATE_NAME], Mode=TwoWay}" DataContext="{Binding ElementName=MyMap, Path=Layers[MyGraphics].Graphics[0].Attributes}"/>
</StackPanel>
</Grid>
... View more
11-11-2010
09:29 AM
|
0
|
0
|
1548
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Friday | |
| 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 |
Monday
|