|
POST
|
{Binding [Descr]} should be replaced by {Binding Attributes[Descr]} (your item is not a dictionary by itself)
... View more
06-04-2010
05:09 AM
|
0
|
0
|
634
|
|
POST
|
Hummm, looks not that easy. 1) The ProgressBar of the toolkit is only designed to track the map loading progress. So yo will have to create your own ProgressBar UI. But that's not too difficult. 2) The point is how to evaluate the progress : you have to mix the map loading progress and the rendering progress (with a weight you have to define). Concerning the rendering progress, I am not sure if it's possible to get a real progress. My only suggestion at this time would be to track the first LayoutUpdated event following the UpdateComplete event of the feature layer and to consider that at this time the progress is 100%. Note that I am not really convinced by my solution :confused:, hopefully somebody will have better ideas.
... View more
06-04-2010
02:00 AM
|
0
|
0
|
631
|
|
POST
|
A couple of idea: 1) Instead of creating a new ToolbarItem as separator, put your separator on the right and/or left of the previous/next ToolbarItem 2) Manage the toolbar by your own StackPanel
... View more
06-04-2010
01:43 AM
|
0
|
0
|
605
|
|
POST
|
For sure you don't need to upgrade your server licese. The 'CreateRandomPoint' tool is at the lowest level of needed license. Either you have a gloabl server licensing issue (but you should have the same issue whatever the GP tool) or it's a specific issue with your model but I don't see which one (are there other tools in your toolbox which could need server extensions? are you using a script or a model?). I am afraid, I am not able to help you more on this license issue. Try posting the question to geoprocessing or server forum.
... View more
06-04-2010
01:38 AM
|
0
|
0
|
1280
|
|
POST
|
Difficult to answer without seeing your code. I guess the ItemsSource is initialized by code. It should be initialized to a collection of Dictionary. From your description it looks like it's well initialized to a collection (because you see the correct number of item). But either the item is not a dictionary or the key "Descr" is not existing in the dictionary.
... View more
06-04-2010
01:25 AM
|
0
|
0
|
634
|
|
POST
|
Try to execute your code asynchrounously from your event handler. Something like : Dispatcher.BeginInvoke(ActivateActionTool);
... View more
06-03-2010
09:17 AM
|
0
|
0
|
1846
|
|
POST
|
From the rest endpoint you are mentioning, I guess you are using an asynchronous GP server. So it's normal that the output parameters don't show up in http://<SERVER_NAME>/ArcGIS/rest/services/CreateRandomTool/GPServer/Create%20Random%20Points/submitJob page. With this page you should only see the status of your job : Submitted, Executed, Succeeded :cool: (or failed 😞 ). To get the result you have to execute another request on the result. What is the status of your Job? If it's 'failed' it means that the problem is with your GP service and not with your Silverlight code. If it's 'Succeeded', it means that the problem is in your code. Take care that the the method to submit the request is depending on the type of task (synchronous, asynchronous). If your service is asynchronous, you should use 'SubmitJobAsync' (and not 'ExecuteAsync' despite the name :)).
... View more
06-03-2010
08:36 AM
|
0
|
0
|
1280
|
|
POST
|
Hi Wei, Have you still the same issue? The maptip is working with the feature in memory and is not supposed to do any connection to the service. So it should work the same way with a secured map service as long as you were able to load the feature layer. Had your feature layer been initialized succesfully when you ran into this issue?
... View more
06-03-2010
02:05 AM
|
0
|
0
|
386
|
|
POST
|
The "Create Random Point" gives you a feature class as output. You have only to declare this output feature class as model parameter (when editing the model, right click on the output, verify that 'Model Parameter' is checked). Behind the scene, the geoprocessing framework will convert the output feature class to a feature set which can be returned by a GP service. After publishing your GP service, you have to execute it in from the silverlight API (there are some samples with the interactive SDK). The result of the execution of your GP service will give you a GPFeatureRecordSetLayer object containing all the features. Then you can include these features into a graphic layer.
... View more
06-03-2010
01:58 AM
|
0
|
0
|
1280
|
|
POST
|
Might be that ESRI.ArcGIS.Client.Toolkit is not referenced in your project.
... View more
06-03-2010
01:34 AM
|
0
|
0
|
986
|
|
POST
|
ArcGISTiledMapServiceLayer and ArcGISDynamicMapServiceLayer have both a method 'Units' which is a string such as 'esriDecimalDegrees'. On the 'Initialized' event, you might convert this string to an esriUnits enum by using Enum.Parse. Something like : esriUnits units = (esriUnits)Enum.Parse(typeof(esriUnits), myMapServiceLayer.Units, true);
... View more
06-03-2010
01:31 AM
|
0
|
0
|
508
|
|
POST
|
You are right, as far as I know, there is no event for the measure action. I am not sure what you want to do (and not sure MeasureAction is designed for that), but you might subsribe to the map.Layers events. When the action is over, the graphic layer is removed from the collection.
... View more
06-03-2010
01:25 AM
|
0
|
0
|
1846
|
|
POST
|
Are you seeing all the classes except 'TemplatePicker' and 'EditorWidget'? If this is the case, you are probably using an old version of the dll since these 2 classes are new in 2.0. I have attached a VS2010 ObjectBrowser view showing the classes of the toolkit in 2.0.
... View more
06-02-2010
05:02 AM
|
0
|
0
|
1656
|
|
POST
|
Hook up to the 'InitializationFailed' event (even if you are doing nothing in 'FeatureLayer_InitializationFailed'). This will prevent the system to throw an exception if the initialization of the layer fails. <esri:FeatureLayer ID="ID=FLayer" InitializationFailed="FeatureLayer_InitializationFailed"/>
... View more
06-02-2010
04:50 AM
|
0
|
0
|
758
|
|
POST
|
MapProgressBar is still there with 2.0 beta and is working the same way than in 1.2. In your xaml file, add something like: <esri:MapProgressBar x:Name="MyProgressBar"
Background="{StaticResource CommonBackgroundBrush}"
Map="{Binding ElementName=Map}"
HorizontalAlignment="Center" VerticalAlignment="Bottom"
Width="150" Height="12"
Margin="5" />
... View more
06-02-2010
04:45 AM
|
0
|
0
|
986
|
| 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
|