Hi all,
Im a newbie trying to set up a mapping web service for our local environmental group.
Can get it all up and running in wgs84(EPSG 4326) but can’t get features to load over imagery when using nzmg (EPSG 27200)
The nzmg image will only display in the openlayers demo if I accept 4326 as default projection.
Why is this? Im happy with this outcome but don’t know what EPSG to use for the overlay features to get them to display.
This is the code the demo produces it uses nzmg as bounds and tile origin and wgs84 as map projection.
Help very much appreciated as would much prefer to have maps displaying in NZMG.
Regards
Chris
var bounds = new OpenLayers.Bounds(
2629421.80675075, 6192776.734840927,
2633541.29183475, 6195367.7231969265
);
var options = {
controls: [],
maxExtent: bounds,
maxResolution: 16.09173860937517,
projection: “EPSG:4326”,
units: ‘degrees’
};
map = new OpenLayers.Map(‘map’, options);
// setup tiled layer
tiled = new OpenLayers.Layer.WMS(
“topp:RectifyTRC_App_NZmg_1 - Tiled”, "
{
width: ‘800’,
srs: ‘EPSG:4326’,
layers: ‘topp:RectifyTRC_App_NZmg_1’,
height: ‘472’,
styles: ‘’,
format: format,
tiled: ‘true’,
tilesOrigin : "2629421.80675075,6192776.734840927