Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
535
using xamMap in sketchflow
posted

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.

Parents
  • 2505
    Offline posted

    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

Reply Children