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
65
xam map shows compile error
posted

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

Parents
No Data
Reply Children
No Data