POST
|
I have a dual monitor + laptop setup. The 2 monitors are Dell model U2414H. When I display Ops Dashboard on either of the monitors, I get really bad redraw problems. However, on the laptop display there are no issues. I'd really like to be able to take advantage of the real estate of my dual monitors, but it's just too difficult to get anything done with the redraw issue. I do not have this issue with any other applications, just Ops Dashboard. Does anyone have any suggestions for fixing this? This is an example of the redraw issue. This is after maximizing ops dashboard. The map widget expands, but the application window does not. If I open a different application that covers Ops Dashboard, then minimize the second application, then Ops Dashboard redraws correctly.
... View more
11-06-2015
07:19 AM
|
0
|
1
|
2780
|
POST
|
Hi, My team is working on a requirement to use the EditVertices functionality to allow users to move graphics. The move functionality works great except for the fact that the length\area of the resulting geometry does not match the length\area before the move. For example, we created a polygon based on the boundaries of a football field in south Florida and calculated the area to be approx 1.1 acres. We then used the EditVertices task to move the polygon to northern Alaska. We then recalculated the area and it was approximately 0.46 acres. So the question is, how can we move the polygon and then "update" the geometry to reflect the correct size? Is there a simple way to do this through the API? Thanks, Cory
... View more
06-04-2012
11:52 AM
|
0
|
0
|
370
|
POST
|
Hi, As far as I can tell, the REST API does not support CartoGraphicLineSymbols. Is this true, and if so are there plans to add support in a future version? I am trying to find a way to retrieve line symbols from a map service (as json) but the map service only provides simple line symbols, even for those that are CartograhicLineSymbols. For example, a map service has a symbol for "Fence" which is a line with "X" placed on the line at certain intervals. However the json for that symbol comes back as a solid black line with no X's. Is there a way to retrieve the more complex symbol via the REST API? I want to retrieve the symbol so that I can apply it to a graphic in a GraphicsLayers. Thanks, Cory
... View more
05-18-2012
08:46 AM
|
0
|
0
|
527
|
POST
|
Is it possible to change the Drawmode on the Editor (much like you can change the Drawmode of the Draw object)? I am using the Editor to add polygons to a graphics layer (among many other things). I want to be able to add circles and ellipses in addition to the default draw mode of the editor. Ideally I'd like to avoid having to work with both a draw object and the editor, but as far as I can tell the draw object is the easy way to draw circles and ellipses. It would be great if I could just do something like "MyEditor.DrawMode == DrawMode.Circle".
... View more
04-25-2012
07:22 AM
|
0
|
1
|
1939
|
POST
|
A colleague and I came up with a solution to this problem. I wanted to use EventTriggers to handle the Legend Refresh event in my ViewModel, the problem is that EventTriggers do not support passing EventArgs. That is another topic all together, why event args are not passed with the EventTrigger. Anyway, my colleague extended the EventTrigger so that it supports passing the event args and it works great. I will attempt to explain how it all comes together. In the view, a trigger is added to the legend control: <esri:Legend Map="{Binding ElementName=MyMap}"[INDENT]LayerItemsMode="Tree"> <i:Interaction.Triggers>[/INDENT] [INDENT=2]<i:EventTrigger EventName="Refreshed" >[/INDENT] [INDENT=3]<Commands:InvokeCommandActionWithArgs Command="{Binding LegendRefreshedCommand}" />[/INDENT] [INDENT=2]</i:EventTrigger>[/INDENT] [INDENT]</i:Interaction.Triggers>[/INDENT] </esri:Legend> The key thing to notice here is Commands:InvokeCommandActionWithArgs. This is an extended version of TriggerAction and looks like: public class InvokeCommandActionWithArgs : TriggerAction<DependencyObject> { public static DependencyProperty CommandProperty = DependencyProperty.Register("Command", typeof(ICommand), typeof(InvokeCommandActionWithArgs)); public ICommand Command { get { return GetValue(CommandProperty) as ICommand; } set { SetValue(CommandProperty, value); } } protected override void Invoke(object parameter) { if (Command == null) return; Command.Execute(parameter); } } Also notice in the view that the command binding for the Triggeraction is Command="{Binding LegendRefreshedCommand}" . LegendRefreshedCommand is defined in our ViewModel which looks something like: public class MainWindowViewModel { public ICommand LegendRefreshedCommand { get; private set; } public MainWindowViewModel() { LegendRefreshedCommand = new RelayCommand<Legend.RefreshedEventArgs>(OnLegendRefresh, null); } private void OnLegendRefresh(Legend.RefreshedEventArgs refreshedEventArgs) { refreshedEventArgs.LayerItem.IsExpanded = false; } } When the Refreshed event on the legend is bound to the LegendRefreshedCommand on the viewmodel via the extended TriggerAction the OnLegendRefresh method will handle the event. The RefreshedEventArgs are passed in and the LayerItem can now be accessed and the IsExpanded property set to false. This is the piece that is missing when using the plain EventTrigger, because it does not pass the event args. Hopefully that all makes sense and is easy to follow. I have attached a very simple reference project that might make it more clear.
... View more
04-11-2012
10:19 AM
|
0
|
0
|
414
|
POST
|
Mike, Thanks for your response. I considered handling the legend refreshed event, however I am using MVVM and that approach does not work well with the pattern. I may have a way to get around the MVVM issue, but it's not ideal. Do you have any suggestions on how to handle the event while maintaining strict adherence to MVVM (no code-behind)? Thanks, Cory
... View more
04-11-2012
05:49 AM
|
0
|
0
|
414
|
POST
|
Hi, Is there a property I can set so that items in the legend default to collapsed? I am using the legend in tree mode and consuming a map service that has 30 layers in it. When the layer loads the tree node expands and I can't find a way to prevent this (short of using control templates). Thanks, Cory
... View more
04-10-2012
01:56 PM
|
0
|
4
|
2293
|
POST
|
Hi, Is there a way to disable the popup that appears when starting a Runtime application that is using a testing license? With my old beta 2 license (pre Apr2) I was able to run my code without calling SetLicense in my code but after updating to the new beta license this no longer works (if anyone can explain that I would love to hear it as well). So now I (and the rest of the dev team) are stuck with the annoyance of dismissing a popup each time we debug our application. Thanks, Cory
... View more
04-05-2012
06:53 AM
|
0
|
2
|
2727
|
POST
|
Hi all, I am using the MVVM pattern and the WPF API to build a mapping app. I have a map object defined in a View and my app logic is defined in a ViewModel. The ViewModel is set as the datacontext of the View. Everything works great until I try to do something like work with the draw object in the ViewModel. The draw constructor requires a reference to the map which I cannot access in the ViewModel. This of course prevents me from defining the draw object in the ViewModel which is needed to respond to events on the draw object. I could define the draw object in the View but it goes against the MVVM pattern to reference the View from the ViewModel. So the dilemma is that I have no way of getting a reference to the map or draw object in the ViewModel and thus no way to handle events raised by those objects and no way to access their properties. If I were to define the draw object in my view I could setup commanding to handle some of the logic in the ViewModel, but I have requirements that would be difficult to implement with that design. I would prefer to have the draw object (and other esri related objects) defined in the ViewModel and bound to the View somehow, but finding a good way to accomplish that is elusive. Since I am using MVVM (fairly strictly) I do not want any (or very limited) amounts of code in the view code-behind. Can someone offer guidance on best practices for handling this type of scenario? Is there a way to make this work? Thanks, Cory
... View more
03-20-2012
06:40 AM
|
0
|
19
|
6895
|
POST
|
Does the FileGDB .Net Provider implement DbFactory? In other words, is there a way to get a DbFactory object for FileGDB via DbProviderFactories.GetFactory() method? For example, I am able to do the same for SDE (SQL Server) and Personal GDB (Access) like so:
SQL Server
DbProviderFactory factory = DbProviderFactories.GetFactory("System.Data.SqlClient");
Access
DbProviderFactory factory = DbProviderFactories.GetFactory("System.Data.OleDb");
If this isn't possible, are there any plans to implement this in the future? It would be a nice addition to an already great library!
... View more
08-25-2011
11:09 AM
|
0
|
0
|
270
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|