Select to view content in your preferred language

Dynamic layer mapservice not displayed at runtime

2542
4
08-02-2012 11:57 AM
sapnas
by
Frequent Contributor
The WPF application displays the dynamic layer in VS Studio design. But when I run the app the dynamic layer does not appear on the map. The app does not generate any error and I'm unable to  narrow down the issue. Attached is the screen shot of design and runtime
0 Kudos
4 Replies
by Anonymous User
Not applicable
Original User: mbranscomb

Hi,

Please can you provide the XAML for the map portion of your application?

Cheers

Mike
0 Kudos
sapnas
by
Frequent Contributor
  <esri:Map x:Name="_map" UseAcceleratedDisplay="False"   Margin="14,7,13,18" MouseClick="MyMap_MouseClick" Initialized="ArcGISDynamicMapServiceLayer_Initialized">
                                <!-- ArcGIS Online Tiled Basemap Layer -->
                                    <esri:ArcGISTiledMapServiceLayer ID="World Topo Map" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" />
                                
                                <!-- Local Tiled Basemap Layer -->
                                <!--<esri:ArcGISLocalTiledLayer ID="Topographic USA" Path="C:\Program Files (x86)\ArcGIS SDKs\WPF1.0\SDK\Samples\Data\TPKs\Topographic.tpk"/>-->
                                <!-- ArcGIS Online Dynamic Map Service Layer -->
                                <esri:ArcGISDynamicMapServiceLayer ID="USA Demographic" x:Name="USADemographic" 
                      Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer" />
                                    <esri:GraphicsLayer ID="ResultsGraphicsLayer" />
                                    <esri:GraphicsLayer ID="IdentifyIconGraphicsLayer" />
                                    <!--Local Dynamic Layer
                                <esri:ArcGISLocalDynamicMapServiceLayer ID="USA" Path="C:\Program Files (x86)\ArcGIS SDKs\WPF1.0\SDK\Samples\Data\MPKs\USCitiesStates.mpk"/>-->
                                <!-- Online Editable FeatureLayer -->
                                <!--<esri:FeatureLayer ID="Fire Incidents" 
                      Url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0" 
                                />-->
                                <!--Local Feature Layer-->
                                <!--<esri:ArcGISLocalFeatureLayer ID="arcGISLocalFeatureLayer"
                      Path="C:\Program Files (x86)\ArcGIS SDKs\WPF1.0\SDK\Samples\Data\MPKs\USCitiesStates.mpk" 
                      LayerName="States"/>-->
                                <!--Graphics Layer-->
                                <!--<esri:GraphicsLayer ID="Example Graphic">
                <esri:Graphic>
                    <esri:Graphic.Symbol>
                        <esri:SimpleMarkerSymbol Style="Circle" Color="Red"/>
                    </esri:Graphic.Symbol>
                    <esri:Graphic.Geometry>
                        <esri:MapPoint  X="0" Y="0" >
                            <esri:MapPoint.SpatialReference>
                                <esri:SpatialReference WKID="102100"/>
                            </esri:MapPoint.SpatialReference>
                        </esri:MapPoint>                    
                        </esri:Graphic.Geometry>                  
                </esri:Graphic>
            </esri:GraphicsLayer>-->
                            <!--    <i:Interaction.Behaviors>
                                    <esri:MaintainExtentBehavior />
                                </i:Interaction.Behaviors>-->
                            </esri:Map>

0 Kudos
sapnas
by
Frequent Contributor
Additional info, initially loads fine (this is intermiitent). When I maximize the application and zoom in the map the dynamic layers fails to load.
0 Kudos
by Anonymous User
Not applicable
Original User: markparr

Ever resolve this?  I am experiencing the similar issue.............

In my situation I am connecting to a local ArcGIS Server using SQL Server DB.  In VS, I can see all features at layer selection time in the designer but when I run the application I only get a subset of the features.
0 Kudos