|
POST
|
Strange. I haven't a clue. The only way I know to change the orientation of a dynamic layer is to change the rotation of the map. I guess you didn't do that? Do you get the same result by using a dynamiclayer coming from arcgisonline instead of your own server?
... View more
06-29-2010
12:07 AM
|
0
|
0
|
1410
|
|
POST
|
Should be something like:
Dim dgtc As New DataGridTextColumn With{.Header = kvp.Value, .Binding = (New Data.Binding("Attributes[" + kvp.Key + "]"))}
... View more
06-29-2010
12:01 AM
|
0
|
0
|
445
|
|
POST
|
Here is an example of button using a geometry path : http://weblogs.asp.net/gavinleader/archive/2008/06/19/silverlight-2-creating-a-play-pause-button-using-a-controltemplate.aspx There is no relationship with ArcGIS API so perhaps I misunderstood your question.
... View more
06-28-2010
11:58 PM
|
0
|
0
|
763
|
|
POST
|
I noticed that the geometry of your feature layer was of type polygon : Geometry Type: esriGeometryPolygon and that you were using a marker symbol FeatureSymbol="{StaticResource MyMarkerSymbol}" You should use a fill symbol instead. My features are supposed to be horizontal but they are displaying vertically. Could you give more info about this issue? Also the labels(annotation) are not being displayed. I am not sure on how the annotation layers are managed with API 2.0. Need to wait for Morten's answer.
... View more
06-25-2010
02:16 AM
|
0
|
0
|
1440
|
|
POST
|
I did that in one application, so I give you the code (XAML):
<!-- Base Map Switcher -->
<Border x:Name="BaseMapSwitcher" Style="{StaticResource CommonBorder}" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="5">
<StackPanel Orientation="Horizontal" Margin="5">
<RadioButton Content="No BaseMap" ToolTipService.ToolTip="No base map" GroupName="BaseLayer" Margin="5,0,0,0" Foreground="White" FontSize="11" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="Checked">
<actions:SetLayerVisibilityAction TargetName="Map" LayerID="BaseLayer" Visible="False"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</RadioButton>
<RadioButton Content="Streets" IsChecked="True" ToolTipService.ToolTip="Worldwide Street Map" GroupName="BaseLayer" Margin="5,0,0,0" Foreground="White" FontSize="11" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="Checked">
<actions:SetLayerUrlAction TargetName="Map" LayerID="BaseLayer" Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
<actions:SetLayerVisibilityAction TargetName="Map" LayerID="BaseLayer" Visible="True"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</RadioButton>
.......
As an ArcGISMapServiceLayer doesn't accept an empty Url, I switch the visibility On/Off.
... View more
06-25-2010
02:04 AM
|
0
|
0
|
966
|
|
POST
|
Question1: Your answer means that I cannot make both look clear, right? From my understanding : yes. You can only adjust the opacity (or color transparency for same result) to get the best result for your case. Is there a way to merge the 2 layers or whatever that can paint the basemap without changing the basemap opacity? To merge 2 layers you would have to decide the opacity of each layer as well ==> same result Question2: hmm, in the spatial query sample, I can move the map while the cursor is on top of the painting area. http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/samples/start.htm#SpatialQuery You are right when no tool are active. But if you activate one of the tool, you can no more pan because the mouse event is handled by the tool.
... View more
06-24-2010
10:09 AM
|
0
|
0
|
828
|
|
POST
|
Question 1 : You can change the transparency of the graphics in order to change the way the basemap is visible. But more you will see the graphics, less you will see the basemap. Note that in the sample the transparency is specified with an color alpha value (88) given by the two first hexdecimal digits. Question2 : The sample has this behavior as well. If you activate a tool, you are no more able to pan. So looks normal.
... View more
06-24-2010
07:25 AM
|
0
|
0
|
828
|
|
POST
|
Do you mean that you can't pan with the template application without any modification? Is it working with the online samples (e.g http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Map) ?
... View more
06-24-2010
07:08 AM
|
0
|
0
|
1628
|
|
POST
|
1) It's not possible to reorder the sublayers coming from a dynamic map service layer, so you won't be able to reorder your 10 layers. 2) To reorder the main layers (i.e. your dynamic map service layer, your feature layer and your couple of graphic layers, you have to reorder the LayerCollection Map.Layers. I don't think it's possible to directly move a layer inside a LayerCollection but Remove + Insert(index) should make the job.
... View more
06-24-2010
07:03 AM
|
0
|
0
|
336
|
|
POST
|
The magnifying control can't reuse a layer coming from the map (a layer can only be displayed in ONE control). Instead, create a new layer. Something like:
ArcGISTiledMapServiceLayer arcgisLayer = Map.Layers["imagery"] as ArcGISTiledMapServiceLayer;
ArcGISTiledMapServiceLayer arcgisMagnifyingLayer = new ArcGISTiledMapServiceLayer();
arcgisMagnifyingLayer.Url = arcgisLayer.Url;
MyMagnifyingGlass.Layer = arcgisMagnifyingLayer;
Or even simpler (depending on your need), you could just change the magnifying layer url: MyMagnifyingGlass.Layer.Url = arcgisLayer.Url;
... View more
06-24-2010
06:50 AM
|
0
|
0
|
1421
|
|
POST
|
The sample is not designed to allow adding kml layer from local hard disk. But I guess, it's possible to modify it in order to get a file by 'OpenFileDialog' and to use this file to populate the kml layer.
... View more
06-23-2010
04:26 AM
|
0
|
0
|
946
|
|
POST
|
One option is you to use the LINQ projection to create a new enumerable with the pair alias/value. Something like: using System.Linq;
......
QueryDetailsDataGrid.ItemsSource = from keyValuePair in selectedFeature.Attributes
select new KeyValuePair<String, Object>(featureSet.FieldAliases[keyValuePair.Key], keyValuePair.Value);
... View more
06-23-2010
04:15 AM
|
0
|
0
|
524
|
|
POST
|
It should work. I didn't reproduce the issue. I tested either by changing the Url of the magnifying glass layer or by changing the layer itself (by instantiating a new one). Both works. How exactly ar you changing the Tiles Map Service? Which version are you using?
... View more
06-23-2010
04:10 AM
|
0
|
0
|
1421
|
| 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
|