Select to view content in your preferred language

Overmap not showing up initially

604
0
04-27-2010 08:51 AM
bbieb
by
Frequent Contributor
Hi,
I've been trying to set up an overview map but when the map is initially loaded, the overview map is blank.  Watching the traffic through fiddler, I can see the images are being passed to the client.  If I zoom/pan around the overview map shows up.  Any ideas on how to diagnose what is going on?

Also, is there a way to control the ratio of the map extent to the overview extent.  If my users zoom in too far, they lose the context of where they are at.
Thanks.
brian

                <Grid HorizontalAlignment="Right" VerticalAlignment="Top" Width="300" Height="200" Grid.Row="0"  Canvas.ZIndex="100">
                    <Border CornerRadius="0,0,0,10" Background="#DD355672">
                        <esriToolkit:OverviewMap x:Name="MyOverviewMap" Margin="8,0,0,8" MaximumExtent="87200,5077000,717500,5450000"
                    Map="{Binding ElementName=MyMap}">
                            <esriToolkit:OverviewMap.Layer>
                                <esri:ArcGISTiledMapServiceLayer ID="overview" 
                            Url="http://itddotgis.itd.nd.gov/ArcGIS/rest/services/overviews/overview-utm/MapServer"/>
                            </esriToolkit:OverviewMap.Layer>
                        </esriToolkit:OverviewMap>
                    </Border>
                </Grid>

                <esri:Map x:Name="MyMap" Grid.Row="0" ExtentChanged="MyMap_ExtentChanged" KeyDown="MyMap_KeyDown" KeyUp="MyMap_KeyUp" Background="White" Progress="MyMap_Progress" MouseEnter="MyMap_MouseEnter" MouseLeave="MyMap_MouseLeave"    >
                    <!--<esri:Map.Extent>
               <esriGeometry:Envelope XMin="87200" YMin="5077000" XMax="717500" YMax="5450000" >
                <esriGeometry:Envelope.SpatialReference>
                 <esriGeometry:SpatialReference WKID="26914"/>
                </esriGeometry:Envelope.SpatialReference>
               </esriGeometry:Envelope>
              </esri:Map.Extent>-->
                    <esri:ArcGISDynamicMapServiceLayer ID="base_map"  Url="http://itddotgis.itd.nd.gov/ArcGIS/rest/services/rcrs/basemap-rcrs/MapServer/" />
                    <esri:GraphicsLayer x:Name="checkedOkGLyr" ID="checkedOKGraphicsLayer" />
                    <!-- storage of selection graphic while going to get the road selection -->
                    <esri:GraphicsLayer x:Name="highlightGLyr" ID="highlightGraphicsLayer" />
                    <esri:ArcGISDynamicMapServiceLayer ID="road_conditions"  Url="http://itddotgis.itd.nd.gov/ArcGIS/rest/services/rcrs/road_conditions/MapServer/" DisableClientCaching="True"/>
                    <!--roadUniqueValueRenderer -->
                    <esri:GraphicsLayer x:Name="changedGLyr" ID="changedGraphicsLayer" Renderer="{StaticResource roadUniqueValueRenderer}" Opacity="1"  />
                    <esri:GraphicsLayer x:Name="selectionGLyr" ID="selectionGraphicsLayer" Initialized="highlightGLyr_Initialized" />
                    <esri:GraphicsLayer x:Name="drawGLyr" ID="drawGraphicsLayer" />
                </esri:Map>
brian
0 Kudos
0 Replies