|
POST
|
Sounds like it is fixed in the final, which is good... For the time being I fixed this by doing the following in the Loaded event:
foreach (LayerItemViewModel layerItem in Legend.LayerItems)
layerItem.IsEnabled = layerItem.IsVisible;
I am binding to the IsEnabled like in the sample... but set their initial value which doesn't seem set using the above code.
... View more
11-17-2010
12:52 PM
|
0
|
0
|
1992
|
|
POST
|
I LOVE the new legend info from REST. It is great to be able to use this in my Silverlight/WPF applications. One issue though, I have a few services which contain layers that are Raster Catalog data and they have a classified renderer applied to them. These classified values do not show... 1) Is there any trick to get these to show? 2) Can this functionality be added on? Thanks a lot!
... View more
11-17-2010
12:36 PM
|
0
|
1
|
671
|
|
POST
|
FYI, to fix this all I did was remove Padding="3,0" from both the PreviousButton and NextButton in the style.
... View more
11-16-2010
01:10 PM
|
0
|
0
|
2588
|
|
POST
|
Thanks a lot for checking into it Jennifer! I am using WPF4 also... I'll poke around with it some more and see if I can figure anything out. Oh, I just thought of something else it could be, it is a WPF XBAP, not a standalone application... maybe the difference lies there, I know I had that same quirk with something else before.
... View more
11-12-2010
11:19 AM
|
0
|
0
|
2588
|
|
POST
|
Is there an event or something to know when the TimeExtent changes? ExtentChanged does not fire on time changes... Thanks a lot!!!
... View more
11-12-2010
09:48 AM
|
0
|
2
|
806
|
|
POST
|
I cannot replicate this with the DefaultStyle of the TimeSlider. Did you by any chance applied a custom style? Can you also share your XAML-code on how you define the TimeSlider? No custom style, just the default. I define it like this:
<esri:TimeSlider x:Name="TimeSlider" Grid.Column="1" Height="20" Width="400" ValueChanged="TimeSlider_ValueChanged" />
Here is the whole control it is within (I have tried taking it out of this control though and putting it right in the main application grid, and still have the issue):
<local:DialogWindow x:Class="SDL.ArcGIS.Client.Toolkit.TimeSliderWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
xmlns:local="clr-namespace:SDL.ArcGIS.Client.Toolkit"
Resizable="False">
<StackPanel Orientation="Vertical" Margin="10">
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid x:Name="MapsGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="Set Time On:" VerticalAlignment="Center" Foreground="Black" />
<ComboBox x:Name="MapsComboBox" Grid.Column="1" Text="Maps" ItemsSource="{Binding Maps}" Margin="10,0,0,0" />
</Grid>
<Grid x:Name="TimeSliderGrid" Grid.Row="1" Margin="0,10,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Text="Time: " VerticalAlignment="Center" Foreground="Black" />
<esri:TimeSlider x:Name="TimeSlider" Grid.Column="1" Height="20" Width="400" ValueChanged="TimeSlider_ValueChanged" />
<TextBlock Grid.ColumnSpan="2" Grid.Row="1" x:Name="CurrentTimeTextBlock" Foreground="Black" HorizontalAlignment="Center" />
</Grid>
</Grid>
</StackPanel>
</local:DialogWindow>
Another thing that is really odd, if I don't specify the height and width, it drags my application to a hault almost... like its in an endless loop of processing something. I don't see the relation between that behavior and the size of the control though. Thanks for the quick reply Jennifer!
... View more
11-11-2010
01:56 PM
|
0
|
0
|
2588
|
|
POST
|
Please see attached screen shot... see how the circled images are not correct... Is this a WPF bug? I know WPF does wierd things sometimes with graphics. Any ideas on what might be happening and maybe a fix? Thanks a lot!
... View more
11-11-2010
12:55 PM
|
0
|
9
|
3367
|
|
POST
|
Please see the attached screen shot. See how when showCaption="true" the drop down part of the ComboBox does not line up with the text box on the toolbar... any ideas on how to fix this? Also, another question about the Add-in's ComboBox... see how it only displays 4 items and there are a lot more items to scroll through? How can I increase the number of items shown? I would like to show more like 8. Thanks a lot for any help!!! *EDIT* I answered my second question, just set rows="8"
... View more
11-02-2010
08:27 AM
|
0
|
5
|
4140
|
|
POST
|
Hey Morten, thanks a lot for the reply! Heres the problem though, I am not using an ImageService, it is a DynamicMapServiceLayer... this is for a few reasons. - Image Services do not support raster catalogs - Mosaic Datasets (which are supported as Image Services) do not support applying classified symbology. Therefor we serve up a map service that contains a raster catalog layer and not an image service. Now we could apply the classified renderer to all our images and export them out with it and put those in a mosaic dataset, but we have a good amount of these images and if the classification needs to change, then these will all have to be exported again. I tried using the ImageServiceIdentifyTask against the DynamicMapServiceLayer and got this error: "An unexpected error occurred processing the request." Thanks for the info on the legend... SP1 is coming out in like a week or so, isnt it? I'll have to check it out. Again, this is not a Image Service though... just a regular map service. Thanks for the help!
... View more
11-01-2010
04:31 PM
|
0
|
0
|
485
|
|
POST
|
We have a raster catalog served up that contains elevation data. There is a new raster every 24 days with new data and so we use the time slider to scroll through these changes over time, hence the reason they are in a catalog and not standalone. 1) How can I get the pixel value for a spot the user clicks on the map? a) On a side note, does the identify task even return pixel values for standalone rasters? 2) The catalog layer has a classified renderer... I am using the code from ShapeGIS's legend service and it does not bring any symbology back. I don't see that the different classified ranges are even available in the REST API either. I think I saw that 10.1 server was going to have a legend service. Know if it will show these? Thanks a lot for any info!
... View more
11-01-2010
02:47 PM
|
0
|
2
|
1140
|
|
POST
|
Hi Jon, Thanks a lot for that info. I have v4.0.30319 installed and have been running with:
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
and debuging seems to be working fine with that... not sure if that is a little more generic way to handle different 4.0.x versions. But if I run into any issues, I will try specifying the whole version (v4.0.30319). Thank you much!
... View more
10-29-2010
01:21 PM
|
0
|
0
|
2257
|
|
POST
|
Thanks for the reply Richard! Well, I likely can... the DLLs come from another team within our company but they have ported all their code to .NET 4 already. They won't like the idea that they have to maintain a 3.5 version for us to use, but I guess there isn�??t much we can do about it. Technically speaking, running ArcGIS with the config set to .NET 4 should be fine... with the assumption there are no bugs with 4 being backwards compatible to 3.5, is that correct? And the fact that ArcGIS has not been tested with it. But I can see why that wouldn�??t be recommended. I guess first step is to see what that DLL team�??s thoughts are. Thanks again for the info.
... View more
10-29-2010
09:34 AM
|
0
|
0
|
2257
|
|
POST
|
So I am trying to port over our custom 9.3 toolbars and commands to 10. I am really liking the whole add-ins setup for 10 but am having an issue... We have some external DLLs we need to reference that are compiled with .NET 4.0, and trying to use these in the new .NET 3.5 add-in, it won't compile. So I can change the add-in to use .NET 4.0, which seems to work fine... is that ok (I would prefer to use .NET 4.0 if it is ok)? But the problem I am having is that after changing it to .NET 4.0 I cannot debug anymore. It won't hit break points or anything. The toolbar seems to be working as .NET 4.0 though. I know in the past I had a similar issue about not being able to debug and it was because the app.config did not specify the correct .NET version. But the config has: <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> So I either need to be able to use .NET 4.0 DLLs in a 3.5 add-in (which I???m thinking is not going to happen), or Debug with a .NET 4.0 add-in. Any help is greatly appreciated. Thanks a lot! *EDIT* I bet the debugging does not work because ArcMap.exe.config references <supportedRuntime version="v2.0.50727"/> ... hmmmm *EDIT* Just confirmed the above edit... I can debug now. Is this ok? would we need to push this config change out to all our users too to make sure the .NET 4 code runs properly?
... View more
10-28-2010
02:34 PM
|
0
|
10
|
5154
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-24-2023 10:43 AM | |
| 1 | 10-02-2023 02:23 PM | |
| 1 | 11-16-2016 02:05 PM | |
| 1 | 07-05-2017 09:30 AM | |
| 15 | 11-19-2010 08:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
05-01-2024
08:25 PM
|