This is the infinity.The slider is not designed to make interpolation until infinity.Please try with a lower value.It's difficult to give you a value which makes sense because it's depending on your map units (it's why I don't like these resolution properties but I am very 'old school' )I guess the best is you to experiment with different values.
I added this "MaximumResolution="1.7976931348623157E+308"
Oh I see, if you do not have a Tiled layer, the MinimumResolution and MaximumResolution of the map is not set. Therefore the Navigation control will not know how to set the ZoomSlider's Minimum and Maximum value. What you can do is set these properties on the map to a value that may be meaningful to you.For example: <esri:Map x:Name="MyMap" MinimumResolution="0.0000107288360595703" MaximumResolution="0.3515625">
<esri:Map x:Name="MyMap" MinimumResolution="0.0000107288360595703" MaximumResolution="0.3515625">
This is expected when the map's resolution has not been set. Once you add a layer to your map that will define it's resolution (Minimum, Maximum and current), you should be able to see the ZoomSlider.
<esri:Map x:Name="MyMap" ExtentChanged="MyMap_ExtentChanged" Background="LightGray" Grid.Column="1" Grid.Row="2" IsLogoVisible="False"> <esri:ArcGISDynamicMapServiceLayer ID="ecocat_images" Url="http://rmms-dev.atlas.illinois.edu/ArcGIS/rest/services/ecocat_images/MapServer" Initialized="ArcGISDynamicMapServiceLayer1_Initialized"/> <esri:ArcGISDynamicMapServiceLayer ID="ecocats" Url="http://rmms-dev.atlas.illinois.edu/ArcGIS/rest/services/ecocats/MapServer" Initialized="ArcGISDynamicMapServiceLayer_Initialized"/> <esri:GraphicsLayer ID="MeasureGraphicsLayer"/> <esri:GraphicsLayer x:Name="MyLayer" ID="MyGraphicsLayer"/> </esri:Map>
You can change the Navigation control template. Kindly see this blog: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/05/20/Use-control-templates-to-customize-the-look-and-feel-of-ArcGIS-controls.aspxYou can see in the default template's VisualStateManager include "Normal" and "MouseOver" states which changes the Opacity of the whole Grid.
<VisualState x:Name="Normal"> <Storyboard> <DoubleAnimation Duration="0:0:0.1" To="0.75" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="LayoutRoot"/> <DoubleAnimation Duration="0:0:0.1" To="0.75" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="LayoutRoot"/> <DoubleAnimation BeginTime="00:00:00" Duration="0:0:0.1" To="0.25" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LayoutRoot"/> </Storyboard> </VisualState> <VisualState x:Name="MouseOver"> <Storyboard> <DoubleAnimation BeginTime="00:00:00" Duration="0:0:0.1" To="1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="LayoutRoot"/> <DoubleAnimation BeginTime="00:00:00" Duration="0:0:0.1" To="1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="LayoutRoot"/> <DoubleAnimation BeginTime="00:00:00" Duration="0:0:0.1" To="0.75" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LayoutRoot"/> </Storyboard> </VisualState>
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.