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.
if(source=='bingve')
{
zoomlength=17-minZoomLevel;
map=new OpenLayers.Map('map',{
projection:new OpenLayers.Projection('EPSG:900913'),
displayProjection:new OpenLayers.Projection('EPSG:27700'),
units:'m'
});
}
Does this will Automatically show Map in UK format OR we need to explicitly call Transform Method to convert Lag / Lon.
Best Answer
Required - Ordnance Survey OpenSpace API Key required.
http://trac.osgeo.org/openlayers/browser/sandbox/edgemaster/openlayers/lib/OpenLayers/Layer/OpenSpace.js?rev=6888
Bill Chadwick produced this excellent demo: SOME GOOD TIPS....
http://wtp2.appspot.com/warpdemo.htm
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.