Hi,
I would like to display GML vector layer in epsg:4326 on top of WMS
Layer in epsg:900913.
The map is initialized like
var options = {
maxExtent: new OpenLayers.Bounds(115, 610, 250,
660),
maxResolution: auto,
projection: new
Note that this should work too, and allows you to handle points in
coordinate systems other than EPSG:4326:
- include proj4js in your app via the script tag
- then:
preFeatureInsert = function(feature) {
var src = new OpenLayers.Projection('EPSG:4326');
var dest = new
Nice one, I heard about proj4js, thought never used it
Thanks for this hint
Jachym
Mike Adair píše v Po 14. 01. 2008 v 10:09 -0500:
Note that this should work too, and allows you to handle points in
coordinate systems other than EPSG:4326:
- include proj4js in your app via the script tag
On Mon, Jan 14, 2008 at 10:09:46AM -0500, Mike Adair wrote:
Note that this should work too, and allows you to handle points in
coordinate systems other than EPSG:4326:
- include proj4js in your app via the script tag
This isn't neccesary for spherical mercator: the reprojection code is