Select to view content in your preferred language

Using Featurelayer and SimpleMarkerSymbol on a TiledMapServiceLayer

553
3
04-05-2010 08:20 AM
SrivatsavaKamatham
Emerging Contributor
Hello All !

There is this thing that has been bugging me for some time now..It might be silly of me,but the same code works for a arcgis online tiled map service layer and it does not work on my TiledMapService Layer..

I am using ESRI's Api for Microsoft Silverlight 1.2

It is a simple feature layer that I got from one of your samples at the resource center

For some reason the individual features of the featurelayer (orange Diamonds)  does not  show up on my TiledMapService Layer..

Are there any Specific requirements for using FeatureLayers and SimpleMarkerSymbols in a TiledMapServiceLayer ??


The Clusterer( Which I have Commented) works fine.. I need the individual features to be highlighted

Please Let me know how I can fix this..

Below is the XAML code I am using.

<UserControl x:Class="sample.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"
xmlns:esri="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client"
xmlns:esriConverters="clr-namespace:ESRI.ArcGIS.Client.ValueConverters;assembly=ESRI.ArcGIS.Client"
xmlns:esriSymbols="clr-namespace:ESRI.ArcGIS.Client.Symbols;assembly=ESRI.ArcGIS.Client"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<Grid x:Name="LayoutRoot" >
<Grid.Resources>
            <esriConverters:DictionaryConverter x:Name="MyDictionaryConverter" />
            <esriSymbols:SimpleMarkerSymbol x:Name="BuildingMarkerSymbol" Color="Orange"   Style="Diamond" Size="12"/>
</Grid.Resources>
<esri:Map x:Name="MyMap" Extent="115301.11116151,3249888.29929396,116697.186902867,3249889.36473107" >
<esri:Map.Layers>
<esri:ArcGISTiledMapServiceLayer ID="TMapLayer"
<!--  My Tiled Map Service Layer (No Access outside Our Network) -->
Url="http://irpsrvgis08.utep.edu/ArcGIS08/rest/services/UTEPmapM/MapServer" />
<esri:FeatureLayer ID="UTEPBuildingLayer"
Url="http://irpsrvgis08.utep.edu/ArcGIS08/rest/services/UTEPmapM/MapServer/3"
Where="1=1" FeatureSymbol="{StaticResource BuildingMarkerSymbol}">
       
             <!--
                   <esri:FeatureLayer.Clusterer>
                        <esri:FlareClusterer FlareBackground="Red" FlareForeground="Black" MaximumFlareCount="17" />
                    </esri:FeatureLayer.Clusterer>
                    <esri:FeatureLayer.OutFields>
                        <sys:String>Building_number</sys:String>
                    </esri:FeatureLayer.OutFields>
              -->
           
                </esri:FeatureLayer>
</esri:Map.Layers>
</esri:Map>
</Grid>
</UserControl>




Thanks,
Sri
0 Kudos
3 Replies
dotMorten_esri
Esri Notable Contributor
Are your buildings points? MarkerSymbols can only be used with point layers. If your layer is polygons, use a fill symbol instead.
0 Kudos
SrivatsavaKamatham
Emerging Contributor
I will create points for the Buildings and then use the SimpleMarkerSymbol..

But why does the FeatureClusterer option for SimpleMarkerSymbol show up for polygons ??




Sri
0 Kudos
dotMorten_esri
Esri Notable Contributor
Because it clusters the features into point locations
0 Kudos