Select to view content in your preferred language

navigation zoom bar height is short

841
3
12-15-2010 11:23 AM
ThaoNguyen
Emerging Contributor
Hi,
I tried to use the esri navigation tool bar as shown in the sample:
http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/samples/start.htm#Navigation

But, somehow, my zoom bar was very short.  Please see the attached image.  Any ideas?
The code:
<StackPanel x:Uid="NavigationPanel" Orientation="Horizontal" HorizontalAlignment="Left"
                    VerticalAlignment="Bottom" Grid.Row="2">
            <esriToolkit:Navigation x:Uid="MapNavigation" x:Name="MyNavigation" Margin="5"
                                    Map="{Binding ElementName=MainMap}" />
        </StackPanel>
0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
This is related thread (Post #8)
http://forums.arcgis.com/threads/18252-how-to-avoid-the-floating-effect-of-navigation-tool

It could be that Map's Minimum and MaximumResolution are not set therefore the ZoomSlider have not set it's Minimum and Maximum values as well.
0 Kudos
ThaoNguyen
Emerging Contributor
This is related thread (Post #8)
http://forums.arcgis.com/threads/18252-how-to-avoid-the-floating-effect-of-navigation-tool

It could be that Map's Minimum and MaximumResolution are not set therefore the ZoomSlider have not set it's Minimum and Maximum values as well.


I tried the Max and Min resolution and it resolves the problem!  Thanks so much!
It's odd that the sample code does not have Minimum and MaximuResolution set, and it still works.
Maybe the sample has an older version?
0 Kudos
DominiqueBroux
Esri Frequent Contributor
If the map contains tiled layers, the minimum and maximum resolutions are initialized from these layers.

It's why the sample is working without manual initializations.
0 Kudos