I have spent the last two days trying to incorporate Bing Maps with a xhape file. I have read and tried all of the postings that I have found on your site. And I am still not able to merge my shape file into the Bing Map using the Infragistics xamMap control.
I would love to send you the pdf file that I am using, however, due to your rile limitations,. I am unable to do so. The shape file that I am using is the Oregon School District shape file that is available from http://navigator.state.or.us/sdl/data/shapefile/k100/schooldistricts.zip
Is there something wrong with this shape file? Can you merge the shape file with the Bing Map? If so, could you send me the front and back in code to do so?
Thanks
Hi flowerdj
Please try with the following code snippet:
<igMap:ShapeFileReader Uri="ShapeFiles/school/schooldistricts"> <igMap:ShapeFileReader.CoordinateSystem> <igMap:CoordinateSystem UnitType="FT" FalseEasting="1312335.958" FalseNorthing="0.0" > <igMap:CoordinateSystem.Projection> <igMap:LambertConformalConic EllipsoidType="GRS1980" CentralMeridian="-120.5" StandardParallelNorth="43.0" StandardParallelSouth="45.5" LatitudeOrigin="41.75" /> </igMap:CoordinateSystem.Projection> </igMap:CoordinateSystem> </igMap:ShapeFileReader.CoordinateSystem></igMap:ShapeFileReader></igMap:MapLayer.Reader>
The information about shapefile's coordinate system and projection is stored in the .prj file. Ufortunately we don't read that file, but you can open it notepad and manually set data as in the above sample. The result is:
Regards,
Ivan Kotev
This works really great!! Thanks!!
Next question: I am having trouble getting it to zoom in. Is there something that I am missing?