<esri:Map x:Name="MyMap"> <esri:Map.Extent> <esri:Envelope XMin="661140" YMin="-1420246" XMax="3015668" YMax="1594451" > <esri:Envelope.SpatialReference> <esri:SpatialReference WKID="26777"/> </esri:Envelope.SpatialReference> </esri:Envelope> </esri:Map.Extent> <!-- Layer definitions here --> </esri:Map>
Spatial Reference: The Map's spatial reference is determined by the first layer in the map that has this property set. However, it can be overridden by explicitly setting the Extent property with an envelope that has a SpatialReference defined. This has to be done before any layers will be initalized by the map. Once the spatial reference of a map has been set and the layers has loaded, the spatial reference can no longer be changed. If you need to change spatial reference on the fly, you can instead create a new map instance, move the layers to this map, and replace the previous map instance. Also note that tiled layers does not support reprojection, and will not be displayed if the Map's SpatialReference does not match the spatial reference of the tiled layer.
foreach (var feature in stormPolygons.FeatureSet.Features) { foreach(var att in feature.Attributes) { string keyvalue = att.Key.ToString(); }
<esri:SimpleFillSymbol x:Key="TransparentFillSymbol"> <esri:SimpleFillSymbol.ControlTemplate> <ControlTemplate> <Path x:Name="Element" Fill="Transparent" Stroke="Transparent" StrokeThickness="1"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="SelectionStates"> <VisualState x:Name="Unselected"> <Storyboard> <ColorAnimation Storyboard.TargetName="Element" Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)" To="Transparent" Duration="0:0:0.5" /> </Storyboard> </VisualState> <VisualState x:Name="Selected"> <Storyboard> <ColorAnimation Storyboard.TargetName="Element" Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)" To="Blue" Duration="0:0:0.5" /> </Storyboard> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> </Path> </ControlTemplate> </esri:SimpleFillSymbol.ControlTemplate> </esri:SimpleFillSymbol>
<esri:SimpleRenderer x:Key="TransparentRenderer" Symbol="{StaticResource TransparentFillSymbol}" />
<esri:GraphicsLayer ID="MyGraphicsLayer" Renderer="{StaticResource TransparentRenderer}" />
<Grid.Resources> <esriSymbols:SimpleFillSymbol x:Key="ClearFill" Fill="#66FF0000" BorderBrush="Red" BorderThickness="2"/> <esri:SimpleRenderer x:Key="MySimpleRenderer" Symbol="{StaticResource ClearFill}"> </esri:SimpleRenderer> </Grid.Resources> .... <esri:GraphicsLayer ID="StormRegions" Renderer="{StaticResource MySimpleRenderer}" Visible="True" /> ...
stormPolys.Renderer = MySimpleRenderer;
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.