|
POST
|
dgc.Binding = new System.Windows.Data.Binding("Attributes[NAME]"); 's' missing.:)
... View more
09-07-2010
06:01 AM
|
0
|
0
|
3047
|
|
POST
|
The overview map works whatever the layer provided that the spatial reference be the same than the main map.
... View more
09-07-2010
05:47 AM
|
0
|
0
|
958
|
|
POST
|
The ItemsSource property of your datagrid have to be initialized with a collection of graphics. For example after a query returning a QueryEventArgs you should do:
myGrid.ItemsSource = args.FeatureSet.Features;
... View more
09-07-2010
05:24 AM
|
0
|
0
|
3047
|
|
POST
|
Here is the code :
MyGrid.Columns.Add(new DataGridTextColumn() {
CanUserSort = true,
SortMemberPath = "NAME",
Binding = new System.Windows.Data.Binding("Attributes[NAME]"),
Header = "Abrev."
});
MyGrid.Columns.Add(new DataGridTextColumn() {
.....
... View more
09-06-2010
02:39 AM
|
0
|
0
|
3047
|
|
POST
|
It looks like an Unix time based on seconds since standard epoch of 1/1/1970 (or in ms in your case) You can get the date with : DateTime dt = UnixTimeToDateTime(1144368000000 / 1000); UnixTimeToDateTime method:
private static DateTime origin = new DateTime(1970, 1, 1);
public static DateTime UnixTimeToDateTime(long timespan)
{
return origin.AddSeconds(timespan);
}
... View more
09-06-2010
02:37 AM
|
0
|
0
|
540
|
|
POST
|
The 'ShowCoordinateBehavior' is using the map coordinates system. If your map is using a geographical system, the coordinates will be longitude/latitude. If your map is using a web mercator system, the coordinates will be in meters. It should not be any differences between Silverlight and WPF. Likely you changed the base map layer and this explains the difference.
... View more
09-06-2010
02:29 AM
|
0
|
0
|
858
|
|
POST
|
Except if you generate by code the n! combinations without changing the map extent, I don't see any use case where this is an issue. The VisibleLayers is most generally a constant except when a visible layer is added or removed but in this case a new request is needed. Note that in the worst case, the sort could be made by the application.
... View more
09-06-2010
02:21 AM
|
0
|
0
|
691
|
|
POST
|
The closest sample is the 'Show GeoRss feed' sample : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GeoRSS In this sample, there is commented part of the code using LINQ to read a XML file.
... View more
09-06-2010
02:01 AM
|
0
|
0
|
973
|
|
POST
|
Strange. The code to enable the print command is quite simple:
private bool CanPrint(object param)
{
return IsPrinting == false && Map != null;
}
So very likely the Map property is null, but I can't figure out why. If you want, send me your code by mail [email protected], I'll take a look.
... View more
09-03-2010
08:27 AM
|
0
|
0
|
1693
|
|
POST
|
Hi Kevin, Thank you for your nice feedback. What determines if the control bound to PrintCommand will be enabled or disabled? The command is disabled if the map attached to the map printer is null or is being printed. I guess your issue is coming from the map binding. Check that the map element name (Map is this sample) is the right one:
<esri:Map x:Name="Map" Background="White" Extent="-400000, 5230000, 840000, 6870000">
<esri:ArcGISTiledMapServiceLayer ID="Basemap" Url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />
<esri:ArcGISDynamicMapServiceLayer ID="TourDeFrance" Url="http://88.191.74.143/ArcGIS/rest/services/TourDeFrance2010/MapServer" Opacity="1.0" />
</esri:Map>
..........
<controls:PrintPreview x:Name="PrintPreview">
<controls:MapPrinter x:Name="mapPrinterWithPreview"Map="{Binding ElementName=Map}" PrintDocumentName="Tour de France 2010" IsActive="True" Height="1050" Width="750"
BorderBrush="#20000080" BorderThickness="2" Foreground="White" Background="{StaticResource CommonBackgroundBrush}" />
</controls:PrintPreview>
my print_preview button (utilizing your ToggleVisibilityAction) doesn't do anything No clue without more info. I suggest you set IsActive to True, so you should see the print preview without using the button. (You might also try to set the Visibility of the PrintPreviewPanel to 'Visible' instead of using a binding :
<local:WindowPanel x:Name="PrintPreviewPanel" Width="340" Height="405" Effect="{StaticResource dropShadow}"
Background="{StaticResource CommonBackgroundBrush}"
Visibility="Visible"
VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,60,10,0" BorderBrush="{StaticResource CommonBorderBrush}">
).
... View more
09-02-2010
11:38 AM
|
0
|
0
|
3409
|
|
POST
|
MapTip can't be defined as resource (even in XAML). But you can define it by code the same way than in XAML : ObjectsGraphicsLayer.MapTip = new Border() { ......
... View more
09-01-2010
03:06 AM
|
0
|
0
|
909
|
|
POST
|
Is there a way I can set a generic Layer at design time and then assign a dynamic or cached url at run time? No way to define a generic layer at desin time. You might consider to create the layer by code after the user selection.
... View more
09-01-2010
03:01 AM
|
0
|
0
|
1019
|
|
POST
|
This comes from an IE limitation : the URL length must be less that 2083. At this time, the only workaround I know is the use of another browser:o. This might work with the next version of the ESRI SL API:)
... View more
09-01-2010
02:56 AM
|
0
|
0
|
498
|
|
POST
|
Try by setting to true the DisableClientCahing parameter of the QueryTask (not sure this will solve your case but worth the try)
... View more
09-01-2010
02:49 AM
|
0
|
0
|
735
|
|
POST
|
It looks the same issue than http://forums.arcgis.com/threads/8290-DynamicLayer-VisibleLayers-property?highlight=designmodel+documentmodel Morten's asnwer: Unfortunately this is a bug in VS2010 (it used to be there in Blend 4 as well, but got fixed after we reported it - unfortunately didn't make it for VS2010). You code will still compile and run though.
... View more
08-31-2010
03:51 PM
|
0
|
0
|
459
|
| 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
|