Select to view content in your preferred language

Feature layer

2482
12
07-01-2010 09:46 AM
TonyAlmeida
Occasional Contributor III
I am new to Silverlight so please bare with me. I am testing the samples and they are excellent but when i try to in corporate my data i can't seem to get it to work. I am using the sample "Simple" under feature layer because i have some ArcGIS map services. This is my current code, so any help would be great thanks. We currently have some layers in ArcGIS server map services and varified the url and Map layer IDs through ArcGIS Services Directory.

<UserControl x:Class="SilverlightApplication7.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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:esri="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client">

    <Grid x:Name="LayoutRoot" Background="Snow">
        <esri:Map x:Name="MyMap" Extent="-130,10,-70,60" >
            <esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer"
                    Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
            <esri:FeatureLayer ID="MyFeatureLayer"
                    Url="http://gis.c****n**.org/ArcGIS/rest/services/Internal/AGS_DSD/MapServer/0"/>
           
        </esri:Map>
                 
                 
    </Grid>
</UserControl>
0 Kudos
12 Replies
dotMorten_esri
Esri Notable Contributor
And you are not getting a script error either?
0 Kudos
TonyAlmeida
Occasional Contributor III
No error at all.

I copied the ArcGIS Dynamic layer sample i am still getting a black page no errors. I am confused


<UserControl x:Class="ArcGISSilverlightSDK.DynamicMap"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
    <Grid x:Name="LayoutRoot" Background="White" >

        <esri:Map x:Name="MyMap" >
            <esri:ArcGISDynamicMapServiceLayer ID="MyLayer"
                Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapSe..." />
        </esri:Map>

    </Grid>
</UserControl>
0 Kudos
dotMorten_esri
Esri Notable Contributor
Considering you have a white background, I would expect a White page. Does it turn white when you remove the map control?
0 Kudos