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
115
Example using MVVM
posted

Hello.  Are any examples available for setting the xamMap mapLayer shapefile source as well as defining the projection coordinates using the MVVM pattern?  Rather than setting these values in the XAML or view I'd like to set them in the viewModel.

 <igMap:MapLayer Brushes="#661E90FF"> <igMap:MapLayer.Reader> <igMap:ShapeFileReader Uri="c:\shapefile\district"> <igMap:ShapeFileReader.CoordinateSystem> <igMap:CoordinateSystem  FalseEasting="1000000" FalseNorthing="1000000" > <igMap:CoordinateSystem.Projection> <igMap:LambertConformalConic EllipsoidType="GRS1980"  CentralMeridian="-100" StandardParallelNorth="27.41" StandardParallelSouth="34.91"  LatitudeOrigin="31.16"  /> </igMap:CoordinateSystem> </igMap:ShapeFileReader.CoordinateSystem> </igMap:ShapeFileReader> </igMap:MapLayer>

Thanks.