[mapguide-users] How do I set the right projection in OL for OSM?

Jackie Ng jumpinjackie at gmail.com
Tue Jan 28 06:52:37 PST 2020


OpenLayers 2 doesn't do raster reprojection. You stating the
displayProjection to be EPSG:3857 does not mean the MapGuide-rendered map
image will be reprojected to it. What you should be doing is modifying that
Map Definition so that its coordinate system is WGS84.PseudoMercator (which
is EPSG:3857) and let MapGuide do all the reprojecting server-side when
rendering the image.

The displayProjection is then merely a declaration in OpenLayers that the
map image that comes back from MapGuide is indeed in EPSG:3857 and
everything should nicely line up.

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html


More information about the mapguide-users mailing list