当前位置:编程学习 > 网站相关 >>

arcgis server silverlight 在浏览器中运行加载到100%就不显示了

<UserControl x:Class="_10_2.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.Resources>
            <esri:SimpleRenderer x:Key="MySimpleRenderer">
                <esri:SimpleRenderer.Symbol>
                    <esri:SimpleFillSymbol Fill="Khaki"
                                           BorderBrush="Lavender"
                                           BorderThickness="2">
                        
                    </esri:SimpleFillSymbol>
                </esri:SimpleRenderer.Symbol>
            </esri:SimpleRenderer>
            
            <DataTemplate x:Key="LocationInfoWindowTemplate">
                <StackPanel Margin="2">
                    <TextBlock Text="Location:"/>
                    <TextBlock Text="{Binding X,StringFormat=X\=\{0:0.000\}}"/>
                    <TextBlock Text="{Binding Y,StringFormat=Y\=\{0:0.000\}}"/>
                </StackPanel>
            </DataTemplate>
            
            <DataTemplate x:Key="MyFeatureLayerInforWindowTemplate">
                <TextBlock Text="{Binding [STATE_NAME]}"
                           />
            </DataTemplate>
        </Grid.Resources>
        
        <esri:Map x:Name="MyMap" MouseClick="MyMap_MouseClick">
            <esri:ArcGISTiledMapServiceLayer ID="Street Map"
                                             Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
            <esri:FeatureLayer ID="MyFeatureLayer"
                               Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5"
                               OutFields="STATE_NAME,POP2007"
                               Renderer="{StaticResource MySimpleRenderer}"/>
        </esri:Map>
        
        <esri:InfoWindow x:Name="MyInfoWindow" Padding="2" Map="{Binding ElementName=MyMap}"
                         Background="LemonChiffon"
                         ContentTemplate="{StaticResource MyFeatureLayerInfoWindowTemplate}"
                         CornerRadius="20"
                         MouseLeftButtonUp="MyInfoWindow_MouseLeftButtonUp"/>
    </Grid>
</UserControl>
Silverlight arcgis server Esri --------------------编程问答-------------------- 那说明程序代码出现异常,调试跟踪下代码就能发现错误
补充:企业软件 ,  地理信息系统
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,