Hi,
i tried a sample xam map application
but it showing compile error ("cannot create instance of coordinate system").
xamlparse exception :- "The type initializer for 'Infragistics.Controls.Maps.CoordinateSystem' threw an exception."
this is my sample code.
<igMap:XamMap x:Name="mapControl"> <igMap:XamMap.Layers> <igMap:MapLayer x:Name="Indiana"> <igMap:MapLayer.Reader> <igMap:ShapeFileReader Uri="ShapeFiles/Samara_region_adm_map" > <!-- Specify coordinate system with input projection type. Settings for each attribute is obtained from the .txt Shapefile -->
<igMap:ShapeFileReader.CoordinateSystem> //ERROR<"cannot create instance of coordinate system"> <igMap:CoordinateSystem > <igMap:CoordinateSystem.Projection> <igMap:TransverseMercator > </igMap:TransverseMercator> </igMap:CoordinateSystem.Projection> </igMap:CoordinateSystem> <!--<igMap:CoordinateSystem UnitType="M" FalseEasting="500000"> <igMap:CoordinateSystem.Projection> <igMap:TransverseMercator CentralMeridian="-87" LatitudeOrigin="0,0" /> </igMap:CoordinateSystem.Projection> </igMap:CoordinateSystem>--> </igMap:ShapeFileReader.CoordinateSystem> </igMap:ShapeFileReader> </igMap:MapLayer.Reader> </igMap:MapLayer> </igMap:XamMap.Layers> </igMap:XamMap>
this is my reference "http://help.infragistics.com/Help/NetAdvantage/WPFDV/2010.2/CLR4.0/html/xamWebMap_Change_Map_Coordinate_System.html"
regards
balu
i was able to reproduce the problem in the RTM version of the XamMap. however, it is fixed in the service release, available here: http://es.infragistics.com/dotnet/netadvantage/wpf/data-visualization.aspx#Downloads