|
POST
|
Can you check the container for Margin and Padding?
... View more
12-13-2010
07:42 AM
|
0
|
0
|
3102
|
|
POST
|
Are you using API v2.1? The Editor has a CancelActive command. If EditVertices is active and the edit on the geometry is not yet finalized, when CancelActive command is executed, the geometry isrolled back to its original form. You can try it out here: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave. The same thing applies for GraphicsLayer. If you need to call CancelActive in code-behind, say on KeyDown event: if (this.editor.CancelActive.CanExecute(null))
this.editor.CancelActive.Execute(null); There is also an EditCompleted event in the Editor.
... View more
12-10-2010
01:25 PM
|
0
|
0
|
1042
|
|
POST
|
The IdentifyParameters include LayerIds Property. http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.IdentifyParameters~LayerIds.html I'm not entirely sure about the C# to VB conversion but hopefully you get the idea:
Dim identifyParams As New IdentifyParameters() With { _
Key .Geometry = clickPoint, _
Key .MapExtent = MyMap.Extent, _
Key .Width = CInt(MyMap.ActualWidth), _
Key .Height = CInt(MyMap.ActualHeight), _
Key .LayerOption = LayerOption.visible _
}
identifyParams.LayerIds.Add(3) Where 3 is the layer ID of interest. Here's the SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Identify. Just add the code in red to test it out.
... View more
12-10-2010
08:32 AM
|
0
|
0
|
669
|
|
POST
|
Okay. WebClient request is the most efficient way, anyway where you can parse JSON string and decide GeometryType from there. "geometryType" : "esriGeometryPolygon",
... View more
12-09-2010
01:36 PM
|
0
|
0
|
1630
|
|
POST
|
This may not be the most efficient way to do this but maybe it will help:
FeatureLayer l = new FeatureLayer() { Url = "http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Diversity_US_2D/MapServer/0" };
EventHandler<EventArgs> handler = null;
GeometryType geometryType;
handler = (s, e) =>
{
l.Initialized -= handler;
geometryType = l.LayerInfo.GeometryType;
};
l.Initialized += handler;
l.Initialize();
... View more
12-09-2010
01:22 PM
|
0
|
0
|
1630
|
|
POST
|
This is where you download the full SDK: http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Sample_Interactive_SDK/01660000000v000000/ When Navigating our SDK Interactive Sample page http://esriurl.com/slsdk2: You need to select from the side menu items: Editing > Edit Tools - Explicit Save To get to : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave There are tab menu items you can select from (Live Sample, XAML, Code Behind C#, Code Behind VB) by default it is Live Sample.
... View more
12-09-2010
01:05 PM
|
0
|
0
|
2231
|
|
POST
|
The API Reference I linked you to is one that demonstrates how you can retrieve the current value of VisibleLayers property and display on a TextBlock. The SDK Sample I linked you to is one that gets and sets the VisibleLayers property dynamically based on checked sub layers. They are both valid examples. The code snippet in Post #10 is no different from our SDK sample. It is just simpler because I hardcoded the sub layer ID I want visible. To answer your other question, it is preferrable to get the layer by ID as I have already mentioned in my previous post. The reason is that you may be adding/removing layers or change the order of your layers later on. While the layer index may change in these scenarios, the ID will not.
... View more
12-09-2010
12:54 PM
|
0
|
0
|
381
|
|
POST
|
The MouseWheel on the Map cannot be marked handled as explained in this thread: http://forums.arcgis.com/threads/12027-MouseWheel-support-in-Silverlight What you can do is mark this handled on the element's MouseWheel. However that also means MouseWheel cannot be used to scroll up/down in your user control. To clarify - In my previous post, the mouse events are on the element itself, not the map.
... View more
12-09-2010
11:22 AM
|
0
|
0
|
1409
|
|
POST
|
Yes, you can change the ZoomFactor property of the map http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map~ZoomFactor.html.
... View more
12-09-2010
11:07 AM
|
0
|
0
|
486
|
|
POST
|
Take the following for example: XAML-code:
<esri:Map x:Name="MyMap" >
<esri:ArcGISDynamicMapServiceLayer ID="MyLayer" Initialized="ArcGISDynamicMapServiceLayer_Initialized"
Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer" />
</esri:Map>
Code-behind:
Private Sub ArcGISDynamicMapServiceLayer_Initialized(sender As Object, e As System.EventArgs)
Dim l As ArcGISDynamicMapServiceLayer = TryCast(sender, ArcGISDynamicMapServiceLayer)
l.VisibleLayers = New Integer() {0}
End Sub
If all 3 sub layers were visible, it would look like this: http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer/export?bbox=-127.893138091003,5.39213971511016,-63.555347026621,70.5993603884707 But since in the Initialized event handler, I specified that only sub layer ID=0 is visible, the rest of the layers were not drawn. I have no idea why this does not work for you because I don't have access to your map service and I'm not sure if the first layer on your map is the ArcGISDynamicMapServiceLayer. If you intend to get the layer by index it is:
Dim l As ArcGISDynamicMapServiceLayer = TryCast(Me.MyMap.Layers(0), ArcGISDynamicMapServiceLayer) But a better practice for retrieving the layer is to get them by ID.
Dim l As ArcGISDynamicMapServiceLayer = TryCast(Me.MyMap.Layers("MyLayer"), ArcGISDynamicMapServiceLayer)
... View more
12-09-2010
10:44 AM
|
0
|
0
|
1965
|
|
POST
|
In the UserControl child of ElementLayer, subscribe to MouseLeftButtonDown and MouseWheel and mark them e.Handled = true.
... View more
12-09-2010
10:36 AM
|
0
|
0
|
1409
|
|
POST
|
The two examples are actually the same in that they both affect the VisibleLayers property. In the SDK Sample, all sub layers are by default visible until you uncheck them as is done in the CheckBox_Click event handler. In the API Reference sample, it simply demonstrates how VisibleLayers property can be set. For example, for a map service with 3 sub layers (ID's 0, 1, 2), you can turn off visibility of ID=0 If you do the following: MyArcGISDynamicMapServiceLayer.VisibleLayers = New Integer() {1, 2}
... View more
12-09-2010
09:43 AM
|
0
|
0
|
1965
|
|
POST
|
Notice that for each CollapsiblePanel in the MainPage, contains Borders within their container Grid. The Border's either define a Background or Style. You can update CommonPanelBorderBackgroundBrush Background and RibbonElementBorder Style. In this Style, you may want to update the Setter for BorderBrush and Background.
... View more
12-09-2010
09:27 AM
|
0
|
0
|
680
|
|
POST
|
When working with ArcGISDynamicMapServiceLayer, there is a VisibleLayers property that can identify which layers need to be drawn. API Reference: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~VisibleLayers.html SDK Sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SubLayerList
... View more
12-09-2010
07:43 AM
|
0
|
0
|
1965
|
|
POST
|
The installation should take care of replacing old files and registry updates. However it is always a good practice to uninstall old version prior to installing new version.
... View more
12-09-2010
07:38 AM
|
0
|
0
|
896
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks 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 |
3 weeks ago
|