Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know how to create an XAML GUI for a MapServer map . . .

<esri:Map x:Name="MyMap" Extent="-120,20,-100,40" >     <esri:Map.Layers>          <esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer"                Url="" /> 

However, I need to know how to set up the syntax for using a map that I created from a Shapefile Feature Class that I have brought into ArcMap.

share|improve this question
up vote 0 down vote accepted

After referring to the following page . . . Working with local data using SDK for WPF

I was able to come up with the following lines that I used in my MainWindow.xaml code . . .

      <!--Local Feature Layer-->
        <esri:ArcGISLocalFeatureLayer ID="arcGISLocalFeatureLayer" 
        Path= "C:\Temp\MapWithMyData_101212.mpk" LayerName="MyLayer"/>
share|improve this answer
Please accept this answer so it doesn't get continually auto-bumped. – blah238 Feb 9 '13 at 22:24
I cannot vote for my own answer. Thanks. – Renee Cammarere Mar 7 '13 at 14:00
Click the grey check mark to the left of your answer to accept it (not the same as voting). – blah238 Mar 7 '13 at 15:44

Your Answer


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.