Select to view content in your preferred language

Need Help with the overview.

602
1
10-18-2010 05:36 AM
jonataspovoas
Regular Contributor
Hi,

in my project, i'm using an WindowPanel for the OverView Function, and I'm Having some trouble with it.

On My initial view, when the extent is passed to the overview, it get in a scale too high and then it doesn't show any image, since there no image for the resolution it shows.

is there a way to make the zoom function of the OverView be zoomToResolution passing the center and resolution instead for zoom passing the extent?

here's my OverView:
<userControls:WindowPanel x:Name="OverviewMapPanel" Grid.Row="1" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" Margin="0,30,15,0" BorderBrush="{StaticResource CommonBorderBrush}" Height="160" HorizontalAlignment="Right" VerticalAlignment="Top" Width="275" Effect="{StaticResource dropShadow}" d:LayoutOverrides="Height" Visibility="Collapsed">
 <i:Interaction.Triggers>
  <i:EventTrigger EventName="Loaded">
   <ei:ChangePropertyAction PropertyName="Visibility">
    <ei:ChangePropertyAction.Value>
     <Visibility>Collapsed</Visibility>
    </ei:ChangePropertyAction.Value>
   </ei:ChangePropertyAction>
  </i:EventTrigger>
 </i:Interaction.Triggers>
 <userControls:WindowPanel.ContentTitle>
  <StackPanel Orientation="Horizontal">
   <Image Source="Images/overview.png" HorizontalAlignment="Left" VerticalAlignment="Top" Stretch="Fill" Width="20" Height="20" Margin="5,2,0,0" />
   <TextBlock Foreground="White" FontSize="12" Text="Overview" Width="100" TextWrapping="NoWrap" Height="Auto" HorizontalAlignment="Left" Margin="5,3,0,0" />
  </StackPanel>
 </userControls:WindowPanel.ContentTitle>
 <esri:OverviewMap x:Name="OVMap" Margin="0" Map="{Binding ElementName=Mapa}" >
  <esri:ArcGISDynamicMapServiceLayer Url="http://192.168.5.104/ArcGIS/rest/services/1MapaBase01-10-2010/MapServer" ImageFormat="PNG32"/>
 </esri:OverviewMap>
</userControls:WindowPanel>
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
You might be experiencing this: http://forums.arcgis.com/threads/10033-Overview-map-does-not-show-contents-until-after-view-extent-c... This will be fixed in the next release.

When the OverviewMap loads after it has already updated its extent with the Map's new extent, it fails to update itself until have the map's extent changes again. Changing the panel's Visibility has the same effect.
0 Kudos