|
POST
|
Binding with Layer properties can be done instead of {Binding ElementName=MyMap, Path=Layers[0].Opacity} a better way would be {Binding ElementName=MyMap, Path=Layers[LayerID].Opacity} so that any changes in the order will not affect your binding.
... View more
08-13-2010
06:12 AM
|
0
|
0
|
2383
|
|
POST
|
New to ArcGIS 10 is the "DrawingInfo" which defines the Renderer. When you visit your FeatureLayer URL in the browser, do you see this property and symbols defined? Is this the symbol you see in your map when you run your application? If yes, the Renderer trumps the FeatureSymbol and if you don't want the Renderer to be used you should set it to null. What you can do is either set the FeatureSymbol or overwrite your layer's renderer by setting it to a SimpleRenderer with your marker symbol. I suggest to use SimpleRenderer over UniqueValueRenderer if you don't have to distinguish between types or attributes. If you want a single feature symbol used for your graphics.
... View more
08-13-2010
06:08 AM
|
0
|
0
|
910
|
|
POST
|
I suggested replacing your binding statements with those on separate lines, since each target a different property. Using your code then, I just replaced those two lines. Also, you mentioned in your title and question that you are working with DynamicLayer. I do not see that in your code. You are using ArcGISTiledMapServiceLayer. If you intend to use a dynamic layer instead, you will need to set MapTip in code-behind after the dynamic layer has initialized.
... View more
08-13-2010
06:00 AM
|
0
|
0
|
916
|
|
POST
|
It might be because sampleserver3 gets refreshed every night. You can try to add features of these feature types first and then use the unique value renderer and this code.
... View more
08-12-2010
08:31 PM
|
0
|
0
|
1713
|
|
POST
|
Since you are using ArcGISDynamicMapServiceLayer, it's Layers will be loaded after it has been initialized. So you need to set your ComboBox ItemSource property in code-behind inside your Intialized eventhandler.
... View more
08-12-2010
08:01 PM
|
0
|
0
|
897
|
|
POST
|
Is your ZoomDuration set to 0 or some small number? Are you able to replicate this issue with another base layer? If your answer is yes on the first question, we are currently working on this issue. Jennifer
... View more
08-12-2010
07:28 PM
|
0
|
0
|
557
|
|
POST
|
I think you were close but you missed the TryCast.
Private Sub layer_InitializationFailed(sender As Object, e As EventArgs)
Dim layer As Layer = TryCast(sender, Layer)
MessageBox.Show(String.Format("Layer '{0}' is currently unavailable. Error: {1}", layer.ID, layer.InitializationFailure.Message))
End Sub
This is a useful link for C# to VB conversion: http://www.developerfusion.com/tools/convert/csharp-to-vb/ Jennifer
... View more
08-12-2010
04:24 PM
|
0
|
0
|
2004
|
|
POST
|
Sure, I will make sure to forward that request to our Dev Lead. Jennifer
... View more
08-12-2010
04:19 PM
|
0
|
0
|
1406
|
|
POST
|
You can do something like to change the current order of your layers in code-behind.
LayerCollection layers = this.MyMap.Layers;
IEnumerable<Layer> newOrder = layers.Reverse();
LayerCollection newLayers = new LayerCollection();
foreach (Layer l in newOrder)
newLayers.Add(l);
layers.Clear();
foreach (Layer l in newLayers)
layers.Add(l);
Jennifer
... View more
08-12-2010
04:18 PM
|
0
|
0
|
2383
|
|
POST
|
Currently, MinimumScale is an internal property in the FeatureLayer.LayerInfo, so you will not be able to access it at this time. Jennifer
... View more
08-12-2010
04:07 PM
|
0
|
0
|
1406
|
|
POST
|
<TextBlock Text="{Binding [API]}" FontWeight="Bold" /> <StackPanel Orientation="Horizontal"> <TextBlock Text="Web site: " /> <TextBlock Text="{Binding [Operator]}" /> </StackPanel> These Binding causes the BAD_PARSER_VALUE. I think you meant to put {Binding Attributes[API]} and {Binding Attributes[Operator]}. Jennifer
... View more
08-12-2010
03:59 PM
|
0
|
0
|
916
|
|
POST
|
distance in KM whenever user zooms in/out in my status bar Do you mean use ScaleBar like in this sample? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Scalebar If yes, the only change you really have to do is change DisplayUnits from Miles to Kilometers. Jennifer
... View more
08-12-2010
10:07 AM
|
0
|
0
|
1569
|
|
POST
|
Yup. Ali is right, no graphics can be clicked because there's no symbol for it. You can set GraphicsLayer.Renderer in XAML. It shouldn't be any different than how FeatureLayer.Renderer is set so you can refer to these sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerRendering You can simply use SimpleRenderer with the appropriate symbol template for your geometry type. Jennifer
... View more
08-12-2010
07:39 AM
|
0
|
0
|
1975
|
|
POST
|
Hmm.. the symbol you set on the feature does not have this black border? You can visit the Feature URL from the browser and see its DrawingInfo. These are the symbols used in your FeatureLayer. Check to see if it has a Line Symbol for outline. If you want to override the renderer or symbol, you can do so by setting FeatureLayer.Renderer or FeatureLayer.FeatureSymbol also. About the long wait for load, you can use Fiddler to see the web requests and responses. And see if it's busy sending/receiving requests or if something there is incorrect that causes the lag. Do you also know how many features are in that layer? I know there's a service limit of 1000 for 10.0 and 500 for 9.3. Jennifer
... View more
08-12-2010
07:34 AM
|
0
|
0
|
883
|
|
POST
|
Which approach did you use? You can check that all layers have initialized. If you are creating the layers in code, be sure to call layer.Initialize(), subscribe to Initialized event too. Jennifer
... View more
08-12-2010
07:25 AM
|
0
|
0
|
1828
|
| 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
|