Код: Выделить всё
EXTENT 60.664497 55.719908 60.771593 55.800916
PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
END
Код: Выделить всё
function init() {
map = new OpenLayers.Map({
div: "map",
allOverlays: true,
units: 'm',
projection: "longlat",
maxExtent: new OpenLayers.Bounds(
//1549471.9221, 6403610.94, 1550001.32545, 6404015.8
//-200, -250, 200, 100
//59.250, 56.300, 63.03, 53.98
//60.6570, 55.8124, 60.7929, 55.7110
60.664497, 55.719908, 60.771593, 55.800916
//388107.634400379, 5203120.88405952, 500896.339019834, 5310243.30613897
)
});
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://192.168.0.36/cgi-bin/mapserv?map=/%2Fhome%2Fzaa%2Fworkshop-5.4%2F4.map&mode=map&layers=all",
{layers: 'ozrbuilding'} );
map.addLayer(layer);
map.zoomToMaxExtent();
}