New answers tagged

0

MapCentia.gc2.map is referencing the OpenLayers map object. So just switch it out with Heron.App.map.


1

The solution was actually pretty easy ! All I had to do is set "projection: new OpenLayers.Projection("EPSG:3857")" in the MapPanel section. ... map: { numZoomLevels: 25, controls: controls, projection: new OpenLayers.Projection("EPSG:3857") }, ...


2

The most likely issue is projections - OpenLayers sets the projection of the map to match the projection of the base layer. Google and Bing will (always) use epsg:3857 while the OSM server you have chosen is a WMS server and if you check the GetCapabilities you will see it can serve maps in the following projections: <SRS>EPSG:900913</SRS> <...



Top 50 recent answers are included