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
1320
Change the XamMap's shapefile dynamically with c#
posted

Hello,

How can I change the Uri of  ShapeFileReader using c# ?

<ig:MapLayer.Reader>

<ig:ShapeFileReader DataMapping="Name=CNTRY_NAME" Uri="world" />

</ig:MapLayer.Reader>

 

Parents
  • 1320
    Verified Answer
    posted

     

     

     

     

     

     

     

    ShapeFileReader reader = new ShapeFileReader

    ();

    Infragistics.

     

     

    DataMapping.Converter converter = new Infragistics.DataMapping.Converter

    ();

    reader.DataMapping = converter.ConvertFromString(DataMapping)

     

     

    as Infragistics.DataMapping

    ;

    reader.Uri =

     

     

    "world";

    // UriShapefile;

    xamMap1.Layers[0].Reader = reader;

Reply Children
No Data