Hi,
I am creating a Sketchflow prototype with xamMap. I need to share the prototype as a standalone to the client. i.e I will zip it and share to customer, instead of deploying in IIS.
Since am using usa_st shapefiles in the xamMap, I am unable to add these files to xap. I tried the BuildAction as Resource & Content and it is not working.
Only way is to deploy the app in IIS and put the shapefiles in ClientBin folder. Kindly let me know is there anyway like image, I can add shapefiles and use it as standalone.
Hi Jayaprakash C,
In order to get your shapefile copied in the ClientBin, you could try the following approach:1) Add the shapefile to your project and mark it with Build Action:Content and Copy to Output Directory: Copy always.2) Add a "/" before the name of the folder, containing the file, like this: <igMap:XamMap x:Name="theMap"> <igMap:XamMap.Layers> <igMap:MapLayer LayerName="statesLayer"> <igMap:MapLayer.Reader> <igMap:ShapeFileReader Uri="/Shapefiles/usa/usa_st" DataMapping="Name=STATE_NAME"/> </igMap:MapLayer.Reader> </igMap:MapLayer> </igMap:XamMap.Layers> </igMap:XamMap>
Hope that helps,Milana Zhileva
Hi Milana,
Your solution will copy the files to ClientBin, which I dont want.
I want only two files as my end output a html page & xap file. So I can send these two files in mail and any one can view the app by running the html.
This behaviour is possible by making an image as Resource. But for shapefiles it is not working. How I can do that?