|
POST
|
Would you like me to upload with the reversed YMin and YMax so you can see the effects? Yes, please, this might help me to have a clue. Did you test without the MaintainExtentBehavior as well? And could you test without the BaseWIMS_ExtentChanged as well? Thanks
... View more
02-22-2011
06:28 AM
|
0
|
0
|
1942
|
|
POST
|
Hi Kevin, Yours YMin and Ymax are reversed: <esri:ConstrainExtentBehavior ConstrainedExtent="-98.220507, 36.188768, -96.225105, 34.716448" /> That being said, I am not sure this will solve your issue (I was not able to reproduce it), but at least this will prevent to pan outside the constraint extent. So I think it's worth the try after fixing the order. If you still get the issue, could you test without the 'MaintainExtentBehavior'?
... View more
02-22-2011
05:22 AM
|
0
|
0
|
1942
|
|
POST
|
From this sample : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DrawGraphics, it doesn't seem that double clicking is zooming in while the draw is active. Could you give more info about your issue? Thanks
... View more
02-21-2011
10:18 PM
|
0
|
0
|
1216
|
|
POST
|
Can I just copy the MapPrintingControls folder to my project folder and add the MapPrintingControls project into my project? Yes, you can. In this case, in the add reference dialog box, you have to use the 'Projects' option.
... View more
02-21-2011
10:12 PM
|
0
|
0
|
1592
|
|
POST
|
You mentioned in the webpage that ArcGISDynamicMapService layers don't print when the output size is greater than A2, which means that I cannot print our the A4 if I use the dynamic mapservice right? I meant that the issue was with greater size than A2, so A4 and A3 is OK. BTW, I am wondering if this limitation has not been fixed, I will have to retest with the latest version. Also, I have a question related to the codes. I cannot add this line to my codes... using ESRI.ArcGIS.Client.Samples.MapPrinting; You have to build the MapPrintingControls project and, in your project, you have to add a reference to MapPrintingControls.dll. and same with these three namespaces. xmlns:userControls="clr-namespace:MapPrinting.UserControls" xmlns:controls="clr-namespace:ESRI.ArcGIS.Client.Samples.MapPrinting;a ssembly=MapPrintingControls" xmlns:actions="clr-namespace:MapPrinting.Actions" I guess you don't need userControls and actions. xmlns:controls issue will be solved by adding a reference to MapPrintingControls.dll.
... View more
02-21-2011
02:08 PM
|
0
|
0
|
1592
|
|
POST
|
Hi Sergio, To change the symbol size you have to change the LegendItemTemplate. The easiest way is to give a fixed size to the symbol (15 in this sample) : <esri:Legend.LegendItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="0,-1">
<Image Source="{Binding ImageSource}" HorizontalAlignment="Center" VerticalAlignment="Center"
Stretch="Uniform" Height="15" Width="15" Margin="0,-1" />
<TextBlock Text="{Binding Label}" Margin="5,0,0,0" VerticalAlignment="Center" />
</StackPanel>
</DataTemplate>
</esri:Legend.LegendItemTemplate>
The side effect due to the uniform stretch is that all symbols will have the same size. This can be an issue if your feature layer rendering is playing with the size of the symbols. In this case, I guess that one option is to set the image height and width to a ratio of the PixelHeight and PixelWidth of the image source. But this is a little bit complex, there is probably simpler solution, but which one:confused:.
... View more
02-21-2011
02:01 PM
|
0
|
0
|
2225
|
|
POST
|
Is there a way to add a title and a legend to the map that I want to print? Sure. Instead of printing directly the map, you have to print a panel containing the map and any controls such as the legend control. There is a print sample here : http://www.arcgis.com/home/item.html?id=e361c2cc69784fcba34358d0458f66e3 With this sample you can print the legend (e.g. print result with legend).
... View more
02-21-2011
11:27 AM
|
0
|
0
|
1592
|
|
POST
|
Hi Kevin, I tried to reproduce your issue, but I don't understand what type of constrainextentbehavior you set up. It looks like we are not able to zoom out after reaching the full extent (normal), but we are able to pan outside this extent(and then even zoom out to a large extent). This looks strange to me. Could you help me on this point? Thanks
... View more
02-21-2011
11:19 AM
|
0
|
0
|
1942
|
|
POST
|
You have to set the layerItemsMode to 'Flat' in order not to get any group layers in your listbox. With this change, your listbox should work because the binding <ListBox ItemsSource="{Binding LayerItems[0].LayerItems, ElementName=MyLegend}"> will return SubLayer11, SubLayer12, SubLayer13, SubLayer21, SubLayer22, ....
... View more
02-20-2011
08:05 AM
|
0
|
0
|
3645
|
|
POST
|
This code sample might also be useful http://www.arcgis.com/home/item.html?id=4a5af1f10e214a908ece9d18c01a2d25
... View more
02-20-2011
07:54 AM
|
0
|
0
|
2176
|
|
POST
|
Since the old resource center has been deprecated, the sample has been moved to the arcgis.com code gallery : http://www.arcgis.com/home/item.html?id=4a5af1f10e214a908ece9d18c01a2d25
... View more
02-20-2011
07:53 AM
|
0
|
0
|
1637
|
|
POST
|
At first glance, your code shoudl work after commenting out this line: //this.WeatherSlider.SetBinding(Slider.ValueProperty, new Binding("Opacity"){ Mode = BindingMode.TwoWay, Source = nexradWmsLayer }); Anyway, it's not my recommended approach. My proposal: 1) Keep the layerlist sample as it is --> you get the layers checkboxes and sliders working without any code. 2) Then you have to add your code to initialize the url of your wms layer. You can keep this code tied to the checkbox or to the Initialized event but this doesn't seem the best approach (no reason to reinitialize the url each time the user clicks on the checkbox). Looks better to use an event which happens only once. Let's say : Map_Loaded. As a side note, it's better to create a new wms layer instead of just changing the url better I am afraid that setting a new url to an existing layer is not always well managed by the wms layer. So in xaml, add a loaded event to your map and remove the wms layer. Then in C# add the following code:
private void MyMap_Loaded(object sender, System.Windows.RoutedEventArgs e)
{
var map = sender as ESRI.ArcGIS.Client.Map;
String url = Configuration.getAGSAppSetting("weather");
String version = Configuration.getAGSAppSetting("weather_version");
//ToDo...Add layer list to config file...
String[] VisibleWmsLayers = { "nexrad-n0r-900913-m05m" };
map.Layers.Add(new WmsLayer() {
Url = url,
Version = version,
Layers = VisibleWmsLayers ,
ID="Nexrad"
});
}
Hope this help.
... View more
02-11-2011
01:45 AM
|
0
|
0
|
1799
|
|
POST
|
In your MapLayerTemplate the busy indicator is always visible. You have to add a binding to the BusyIndicatorVisibility:
<Grid x:Name="BusyIndicator" Background="Transparent" Margin="3,0" Visibility="{Binding BusyIndicatorVisibility}" ....
... View more
02-11-2011
01:13 AM
|
0
|
0
|
846
|
|
POST
|
It's something like: <esri:UniqueValueRenderer x:Key="MyUniqueValueRenderer" Attribute="TYPE" DefaultSymbol="{StaticResource BLUEMarkerSymbol}">
<esri:UniqueValueRenderer.Infos>
<esri:UniqueValueInfo Value="Church" Symbol="{StaticResource BLUEMarkerSymbol}" />
<esri:UniqueValueInfo Value="SCHOOL" Symbol="{StaticResource PURPLEMarkerSymbol}" />
</esri:UniqueValueRenderer.Infos>
</esri:UniqueValueRenderer>
... View more
02-10-2011
11:03 AM
|
0
|
0
|
1166
|
|
POST
|
The documentation states you should install both of these products (visual studio and expression blend) to develop applications. You need to install one OR the other product. But note that with VS2010 you need Expression Blend SDK which is free.
... View more
02-10-2011
10:44 AM
|
0
|
0
|
581
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-12-2025 03:01 AM | |
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
10-30-2025
08:06 AM
|