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,
Is there any solution to this or is this a bug in Infragistics when using XBAP?
Hello Kenn,
Thank you for your post. I have been looking into the issue that you have described and I can suggest adding the shape files into a Class Library and use the path to that library in the ShapeFileReader. Also you should enable the full trust mode of the WPF Browser Application, in order to allow accessing the shape and dbf files. I have created a sample application for you, that demonstrates how you can implement this approach.
Please note that in the RTM of version 12.1, there was issue, which results in nothing to appear when you use this approach, so I can suggest installing the latest service release of version 12.1. You can download the service release by logging into our website and then go the Account\Keys and Downloads.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
I am just checking if you require any further assistance on the matter.
Thanks.
I have not had a chance to work on the mapping project again or to download and install the latest releases.
The change in a 3rd party control must go through our testing procedures and our schedule does not allow it at this time, mapping has been moved to the back burner.
Thank you for your feedback. Please let me know if you need any further assistance on the matter.