We are using OpenLayers for our GIS Application.

We use Google and BingVE as source for the BaseMap. We use Projection in the OpenLayers with following code. We want to show UK Map with OSGB.

    map=new OpenLayers.Map('map',{

        projection:new OpenLayers.Projection('EPSG:900913'),
        displayProjection:new OpenLayers.Projection('EPSG:27700'),


Does this will Automatically show Map in UK format OR we need to explicitly call Transform Method to convert Lag / Lon.


Required - Ordnance Survey OpenSpace API Key required.


Bill Chadwick produced this excellent demo: SOME GOOD TIPS....

"This demo shows how map tiles on the UK OS projection (EPSG:27700) and the Google maps projection (EPSG:3857) can be composed on top of each other in most common browsers. Use the slider (click on the bars or drag the triangle) to control the opacity of the OS map."

tested the demo out in MSIE 6, MSIE 8, Firefox 3.6, Safari 5.02, Opera 10.63, Chrome 8.0.552.215 and Internet Explorer 9 beta.


Note: The demo code uses the WGS84 Lat/Lon to OS East/North coordinate conversion from OSGB Web Map Tools and the Ground Control Point to Affine Transfrom Matrix algorithm from Google Mapping Hacks.


It depends on whether the server you fetch the OS data from can reproject to 900913 as OpenLayers is unable to reproject raster layers. If however you are using vectors then you will need to add proj4js and follow the instructions from this question OpenLayers/proj4js and the EPSG:27700 (UK) Projection

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy