I have an XBAP application in which I am using a xamMap. I am trying to run it with the usa_st.dbf and usa_st.shp. These files don't get deployed and the map is always blank even when running in the IDE.
I have included the files in the project and marked them copy always.
Any suggestions on what I'm doing wrong would be appreciated.
Kenn
Deploying - oops
Steps to reproduce:
Make a new WPF Browser Application
Add References to:
InfragisticsWPF4.Controls.Maps.XamMap.v12.1
InfragisticsWPF4.DataVisualization.v12.1
InfragisticsWPF4.v12.1
Add a folder called Shapefiles to your project
Include these shape files in project from Infragistices sample source directories
usa_st.dbf
usa_st.shp
Add this namespace to your MainWindow.xaml file:
xmlns:igMap="http://schemas.infragistics.com/xaml
Add this xaml to your MainWindow.xaml file inside the grid:
<igMap:XamMap x:Name="xamMap"> <igMap:XamMap.Layers> <igMap:MapLayer x:Name="statesLayer"> <igMap:MapLayer.Reader> <igMap:ShapeFileReader Uri="/../../Shapefiles/usa_st" DataMapping="Caption=STATE_ABBR" /> </igMap:MapLayer.Reader> </igMap:MapLayer> </igMap:XamMap.Layers> </igMap:XamMap>
Run the app ... no map
This works great if the Project type is not an XBAP
Regards,