hi there--
i'm trying to use XamGeographicMap to display data from some shape files that use what i'm assuming are mercator coordinates; there is a .prj file that says: WGS_1984_Web_Mercator_Auxiliary_Sphere. in the past we were able to do this with XamMap by using MapProjectionType="SphericalMercator" and setting the CoordinateSystem in the ShapeFileReader.
i can't seem to find a similar way to do this in XamGeographicMap -- is this possible? i see SphericalMercatorHorizontalScaler (and vertical), but i don't know how to implement this.
thanks!
p.s. for what it's worth, the shapeFileConverter.WorldRect returns:
shapeFileConverter.WorldRect = {-10053363.9557,4270699.2944,1870937.37,1042605.425}
and setting this the map's WorldRect to this makes for a blank map.
jon
Hello,
Looking at this WorldRect I can assume that your shapefile doesn’t contain geographic data, since the WorldRect that the XamGeographicMap can display is about (-180, -85, 360, 170). The XamGeographicMap cannot display non-geographic data so if this is your case you can still use the XamMap control. Hope this helps!
Thanks,
Diyan Dimitrov
If you are parsing your points, another option is to use the SphericalMercator and call Unproject() on your points. I got this to work with my SqlGeometry data and the XamGeographicMap control.
However, I wish there was a way to use Mercator data directly in the XamGeographicMap control. It seems like the control should be able to handle Mercator projected points directly. The control has to plot XY on the screen. After I convert it from Mercator to Lat Lon, the control must have to do another conversion to some kind of XY.
m