Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a simple feature layer. The points will show up if I put the URL in a DynamicMapServiceLayer, but I need to use maptips, so that will not work. Below is my relevant XAML. If you need anymore information or would like to see other parts of my code, let me know. Any help is appreciated.

<esri:Map x:Name="MyMap" Background="#FFE3E3E3" WrapAround="True" MouseClick="MyMap_MouseClick" MouseRightButtonDown="MyMap_MouseRightButtonDown" Extent="-9834972.92753924,4441899.425293319,-9833977.88119163, 4442762.485358352">
                <esri:Map.Layers>

                    <esri:ArcGISTiledMapServiceLayer ID="MyLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />
                    <!--<esri:ArcGISLocalDynamicMapServiceLayer ID="Calvert_City" Path="C:\Users\jessical\Documents\ArcGIS\CalvertCity_Test.mpk"/>-->
                    <!--<esri:ArcGISDynamicMapServiceLayer  ID="Calvert_City" Url="http://localhost:6080/arcgis/rest/services/CalvertCity_Test_2/MapServer">

                </esri:ArcGISDynamicMapServiceLayer>-->
                    <esri:FeatureLayer ID="Calvert_City" Url="http://localhost:6080/arcgis/rest/services/CalvertCity_Test_2/MapServer" Renderer="{StaticResource MySimpleRenderer}">

                        <esri:FeatureLayer.MapTip>
                            <Border CornerRadius="10" BorderBrush="Black" BorderThickness="2" Margin="0,0,15,15" Background="{StaticResource PanelGradient}">
                                <StackPanel Margin="7">
                                    <TextBlock Text="Content" FontWeight="Bold" Foreground="White"  />
                                    <StackPanel Orientation="Horizontal" >

                                    </StackPanel>
                                </StackPanel>
                            </Border>
                        </esri:FeatureLayer.MapTip>
                    </esri:FeatureLayer>
                </esri:Map.Layers>
share|improve this question
    
Could you bring in the map twice? Once as a DynamicMapServiceLayer and once as a FeatureLayer? –  Mintx Nov 15 '12 at 21:59
add comment

1 Answer

up vote 3 down vote accepted

With featureLayers I think you need to reference a single layer in a map service or feature service. So, instead of:

http://localhost:6080/arcgis/rest/services/CalvertCity_Test_2/MapServer

try

http://localhost:6080/arcgis/rest/services/CalvertCity_Test_2/MapServer/0

change the "0" at the end to match the layer you are interested in.

share|improve this answer
    
Ha! I didn't even realize that I didn't reference a single layer. Gotta love that... Thanks! –  JLott Nov 16 '12 at 14:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.