|
POST
|
However, after trying around I still could find out how to use the FeatureSymbol property. It is in Symbol class of ESRI.ArcGIS.Client.Symbols Namespace, I don't know how to put it into the StackPanel and arrange it with other controls such as text blocks and checkboxes. As Morten said, you can use the ESRI.ArcGIS.Client.Toolkit.Primitives.SymbolDisplay control. For example the following code will give the attached result:
<Grid x:Name="LayoutRoot" >
<Grid.Resources>
<esri:FillSymbol x:Name="FillSymbol" Fill="Yellow" />
<esri:SimpleMarkerSymbol x:Name="MarkerSymbol0" Color="Brown" Style="Circle" />
<esri:SimpleMarkerSymbol x:Name="MarkerSymbol1" Color="BlueViolet" Style="Circle"/>
</Grid.Resources>
<esri:Map x:Name="MyMap" Extent="-120,20,-90,60">
<esri:Map.Layers>
<esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer" Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" />
<esri:FeatureLayer ID="Warning" FeatureSymbol="{StaticResource FillSymbol}" Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/PublicSafety/PublicSafetyFeedSample/MapServer/2"/>
<esri:FeatureLayer ID="Wind" FeatureSymbol="{StaticResource MarkerSymbol0}" Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/PublicSafety/PublicSafetyFeedSample/MapServer/0"/>
<esri:FeatureLayer ID="Stream Gauges" FeatureSymbol="{StaticResource MarkerSymbol1}" Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/PublicSafety/PublicSafetyFeedSample/MapServer/1"/>
</esri:Map.Layers>
</esri:Map>
<Border Background="#77919191" BorderThickness="1" CornerRadius="5"
HorizontalAlignment="Right" VerticalAlignment="Top"
Margin="20" Padding="5" BorderBrush="Black" >
<ListBox x:Name="MyList" ItemsSource="{Binding ElementName=MyMap, Path=Layers}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<!--Layer visibility checkbox-->
<CheckBox IsChecked="{Binding Visible, Mode=TwoWay}" />
<!-- Symbol -->
<esriPrimitives:SymbolDisplay Symbol="{Binding FeatureSymbol}" Margin="5,0,0,0" Height="18" Width="25" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<!--Opacity slider-->
<Slider Margin="0,0,0,0" Minimum="0" Maximum="1" Width="30"
Value="{Binding Opacity, Mode=TwoWay}" Height="18" />
<!--Layer name-->
<TextBlock Text="{Binding ID, Mode=OneWay}" Margin="5,0,0,0" >
<!-- Tooltip on hover-->
<ToolTipService.ToolTip>
<StackPanel MaxWidth="400">
<TextBlock FontWeight="Bold" Text="{Binding CopyrightText}" TextWrapping="Wrap" />
<TextBlock Text="{Binding Description}" TextWrapping="Wrap" />
</StackPanel>
</ToolTipService.ToolTip>
</TextBlock>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Border>
�??
�??
</Grid>
... View more
08-31-2010
03:43 PM
|
0
|
0
|
1418
|
|
POST
|
identifyParameters.LayerOption = LayerOption.visible; LayerOption.visible means that the identify is based on the layers visible when the service has been published (not the layers visible during the last display). This might explain your behavior if your layer "105" is not visible by default. In this case, your code
identifyParameters.LayerOption = LayerOption.all;
identifyParameters.LayerIds.Add(105);
is the right one.
... View more
08-30-2010
05:08 AM
|
0
|
0
|
551
|
|
POST
|
Your code should work if it's executed after the layer has been initialized (e.g in FeatureLayer_Initialized) When is executed your code behind?
... View more
08-30-2010
05:03 AM
|
0
|
0
|
348
|
|
POST
|
I just posted the print sample on the ArcGIS.com code gallery : http://www.arcgis.com/home/item.html?id=e361c2cc69784fcba34358d0458f66e3 It would have needed a few code refactoring and clean-up but as I am in vacations 🙂 during the next 2 weeks:), I'd rather to post it as is. So I'll get your feedbacks when I am back.
... View more
08-13-2010
09:56 AM
|
0
|
0
|
3408
|
|
POST
|
Excellent example. My only question remains how can I generate images large enough to be printed on for example A0 paper? I did some tests with A0 printer driver. I ran into 2 limitations: 1) Need to decrease the printer resolution when the size increases From A2 size, 600dpi is no more working, I have to use 300dpi or less With A0, 300dpi is not working, need 150dpi or less. Not working means that nothing happens when clicking OK in the printer dialog box. As I only tested on one machine and one high size driver, I don't know if it's a generic Silverlight behavior in order to limit the size of the print job or if it's tied to my OS or my driver. 2) With my sample, the ArcGISDynamicMapService layers don't print from A2 size. Unfortunately I don't think I will find a workaround soon:( Here are the results of my tests (with PDF driver): - A4 600dpi (default) - A3 600dpi - A4 4 pages 300dpi (would work with 600dpi, I set 300 to limit the result size) - A4 16 pages 150dpi (would work with 600dpi, I set 150 to limit the result size) - A2 300dpi (I was unable to get better resolution) - A0 150 dpi (I was unable to get better resolution) �??
... View more
08-13-2010
08:33 AM
|
0
|
0
|
3408
|
|
POST
|
Might be a geometry type issue. FillSymbols are working with polygon geometry. What is the geometry type of your graphics? How do you initialize it?
... View more
08-13-2010
07:52 AM
|
0
|
0
|
1990
|
|
POST
|
I am not sure you can use the isolated storage for the splash screen which is displayed while the application is loaded because at this time, by definition, the application is not yet loaded. So I would be more thinking about something in Javascript and a storage as cookies. That being said, I never tried, so just my 2cts.:)
... View more
08-13-2010
07:02 AM
|
0
|
0
|
1349
|
|
POST
|
Can anyone point use in a direction to determine what is needed to be able to serve up Tiles? Main steps are these : using ArcMap, create an mxd with the layers and the symbology you need publish your mxd to ArcGIS server right click on your new service and select 'Service Properties...' select the 'Caching' tab select 'Using tiles from its cache' option + other options to create the cache Update the tiles (not needed if you select the option 'Create tiles on demand') now the tiled service is available
... View more
08-13-2010
06:52 AM
|
0
|
0
|
1580
|
|
POST
|
The query task with a spatial filter is working if the map layer supports the query operation. To know if a layer supports query, you can request the rest end point. For example, with this tiled map service : http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Population_Density/MapServer you can see that the layers supports the query (look at the bottom of the page) : http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Population_Density/MapServer/1 But this one doesn't support : http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/0
... View more
08-13-2010
06:40 AM
|
0
|
0
|
589
|
|
POST
|
It's kilometers. As far as I know it's not possible to change to miles (not publicly exposed).
... View more
08-13-2010
06:32 AM
|
0
|
0
|
492
|
|
POST
|
I guess mliebster is talking about this site http://esrislcontrib.codeplex.com/
... View more
08-13-2010
06:30 AM
|
0
|
0
|
1106
|
|
POST
|
One thing I've noticed though is that if the dynamic layer's projection doesn't match, it gets a white background when projected to match the map covering all layers underneath. Is this correct and if so is it by design, a known limitation, or something I can work around? It's not by design. It should work the same way. I didn't reproduce your issue. For example, I changed the tiled layer of the DynamicAndTiled sample :
<Grid x:Name="LayoutRoot" >
<esri:Map x:Name="MyMap">
<esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer"
Url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"
InitializationFailed="Layer_InitializationFailed" />
<esri:ArcGISDynamicMapServiceLayer ID="DynamicLayer" Opacity="0.6" Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer"
InitializationFailed="Layer_InitializationFailed" />
</esri:Map>
</Grid>
and I got a good result (see attachment). Note that I was able to get a white background by using an ImageFormat which doesn't support the transparency (as JPG).
<esri:ArcGISDynamicMapServiceLayer ID="DynamicLayer" Opacity="0.6" ImageFormat="JPG"
Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer"
InitializationFailed="Layer_InitializationFailed" />
But I guess it's not your case since you would get the same result whatever the spatial reference. Could you give more info on how to reproduce your issue? Thanks
... View more
08-13-2010
06:27 AM
|
0
|
0
|
762
|
|
POST
|
The clustering is tied to one feature layer. So in your case, one REST end point for Accomodation looks good. __ * Hotels __ * Campsites __ * Caravan Parks __ * Hostels Then if you want to manage the visibility by subtype, you will have to do it by code by removing or changing the symbology of the features.
... View more
08-13-2010
06:17 AM
|
0
|
0
|
485
|
|
POST
|
Do you get this error in Design or in run-time? I know this kind of error can happen during the design but it should work at run-time.
... View more
08-13-2010
06:12 AM
|
0
|
0
|
932
|
| 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
|