|
POST
|
As your service is not public, the legend control can't use the legend service on ArcGIS.com to generate swatches. So, the legend details have to come from your map service but this is only working from ArcGIS server 10 SP1. You can test your legend rest end point with a request like : http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_MedianIncome_US_2D/MapServer/legend
... View more
01-02-2011
11:01 PM
|
0
|
0
|
1851
|
|
POST
|
I just added a WPF version of the map printing sample. With this version, an intermediary XPS document is created and can be previewed before printing. Test it live.
... View more
12-28-2010
07:45 AM
|
0
|
0
|
1700
|
|
POST
|
however, the preview map is not honoring changes made to layers within the map control (MyMap). If layers or graphics are added/removed, they are not showing up in the preview map, even if the control is loaded/unloaded. Maybe I'm missing something... With the sample application, you can take of the layer visiibilities and of the current extent by closing and reopening the preview window. The scenario is this one: - launch the application - close the preview window - open the table of contents - change some layer visibilities and/or opacity - change the current extent - open the print preview window You will notice that the print is taking care of all your changes. This is done by using the IsActive property of the MapPrinter. The map is cloned for printing when the IsActive property is set to true (and the cloned map is freed when IsActive is set to false). So binding the IsActive property to the visibility of the preview window allows to take care of all changes when the preview window is opened and to free the resources when it's closed. Merry Christmas:).
... View more
12-24-2010
03:36 AM
|
0
|
0
|
1763
|
|
POST
|
:confused: Can you zoom out by using the navigation control? Can you reproduce the issue with a public tiled map service or is it specific to your service?
... View more
12-23-2010
06:40 AM
|
0
|
0
|
1984
|
|
POST
|
Your minimum scale is 1:300000 (which is relatively high) so you will never be able to zoom out more than this scale. After zooming in using the wheel or +, can you zoom out back or are all zoom out impossible whatever the initial state?
... View more
12-23-2010
05:51 AM
|
0
|
0
|
1984
|
|
POST
|
If you set the TimeExtent property of your map, the request to the rest end point will be made by the framework behind the scene. That's the easier way. If for any reason you need to request yourself the rest end point. the timeinstant is the number of milliseconds since 1970 January, the 1st. So to convert a time to timeinstant, you can use code like: TimeSpan elapsed = timeToConvert.ToUniversalTime() - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);long timeinstant = elapsed.TotalMilliseconds;
... View more
12-23-2010
05:34 AM
|
0
|
0
|
1230
|
|
POST
|
Please check what are the level of details of your tiled layer. Example : http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer
... View more
12-23-2010
04:42 AM
|
0
|
0
|
1984
|
|
POST
|
The main window won't be the grid inside your control. It could be the control itself if it's used as main window.
... View more
12-23-2010
04:37 AM
|
0
|
0
|
1043
|
|
POST
|
The window panel is not designed for that, but you might find ideas about the controls to use on this thread: http://forums.arcgis.com/threads/8403-Is-there-any-SL-control-that-acts-like-floating-panel
... View more
12-23-2010
02:51 AM
|
0
|
0
|
797
|
|
POST
|
if the user modifies the map in any way (adds another layer, zooms to another portion of the map, or adds/removes more graphics) those changes are not reflected in the preview window The preview window was not designed to stay in sync with the main map. The idea was to get a snapshot of the main map when the preview opens. So after changing visibilities of a layer, the user has to close and reopen the preview window. Nevertheless it makes sense to keep the 2 windows in sync, I will try to update the sample soon.
... View more
12-23-2010
02:49 AM
|
0
|
0
|
1763
|
|
POST
|
<esri:ArcGISDynamicMapServiceLayer ID="MagnifyImageLayer" Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0" /> http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0 is the URL of a FeatureLayer not a map service layer. So, should work: <esri:FeatureLayerID="MagnifyImageLayer" Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0" /> or <esri:ArcGISDynamicMapServiceLayer ID="MagnifyImageLayer" Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer" VisibleLayers="0" />
... View more
12-20-2010
03:42 AM
|
0
|
0
|
1061
|
|
POST
|
This works when pointing at all layers but not one layer i.e. Mapserver/0 If you are pointing one layer, you have to use a FeatureLayer instead of an ArcGISDynamicMapServiceLayer. Is there something server side that limits the zoom factor? Might be a minimum resolution set on the layer.
... View more
12-20-2010
03:28 AM
|
0
|
0
|
1061
|
|
POST
|
You can template the InfoWindow with an ItemsControl (such as a ListBox) and set the Content to an enumeration of graphics. if (selected.Count() > 10)
{
MyInfoWindow.Anchor = e.MapPoint;
MyInfoWindow.IsOpen = true;
//Since a ContentTemplate is defined, Content will define the DataContext for the ContentTemplate
MyInfoWindow.Content = selected;
return;
} And XAML: <esri:InfoWindow x:Name="MyInfoWindow"
Padding="2"
CornerRadius="20"
Background="LightSalmon"
Map="{Binding ElementName=MyMap}"
MouseLeftButtonUp="MyInfoWindow_MouseLeftButtonUp" >
<esri:InfoWindow.ContentTemplate>
<DataTemplate>
<ListBox ItemsSource="{Binding}" MaxHeight="150">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Attributes[Name]}" Foreground="Black" FontSize="12" />
<TextBlock Text="{Binding Attributes[EMail]}" Foreground="Black" FontSize="12" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</DataTemplate>
</esri:InfoWindow.ContentTemplate>
</esri:InfoWindow>
... View more
12-17-2010
12:02 AM
|
0
|
0
|
2038
|
|
POST
|
but I'm having trouble with the zoom to selected feature functionality. What kind of trouble? In your code, where is coming the 'Feature' from?
ESRI.ArcGIS.Client.Geometry.Envelope selectedFeatureExtent = Feature.Geometry.Extent;
As a side note, in 2.1 an 'Expand' method has been added to Envelope class.
... View more
12-16-2010
11:51 PM
|
0
|
0
|
664
|
|
POST
|
Strange:confused: Sorry, I can't help more. Could it be an event layer projection limitation? Try asking in the REST API or Server forums, perhaps more luck.
... View more
12-16-2010
05:38 AM
|
0
|
0
|
2932
|
| 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
|