I have a scanned map that I used gdalwarp create a geotiff with
epsg:3857 and is served with geoserver.
I am unable to get this map to align with google maps or open street maps.
var map;
$(document).ready(function() {
map = new OpenLayers.Map("map", {
projection: "EPSG:900913",
maxExtent: new OpenLayers.Bounds(-8515941.046, 4392656.005,
-8478829.968, 4415896.359),
maxResolution: 145
});
var norfolk = new OpenLayers.Layer.WMS("Norfolk topo 1906",
"http://localhost:8080/geoserver/wms",
{layers: 'norfolk:norfolk_sphmerc5'}
);
var osm = new OpenLayers.Layer.OSM("Open Street Map" );
map.addLayers([osm, norfolk]);
map.zoomToMaxExtent();
map.addControl(new OpenLayers.Control.LayerSwitcher({}));
});
What do I need to add to this?
Thanks,
Jim White
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users