[OpenLayers-Users] Projection problem

David Martinez Morata damarmo at gmail.com
Tue Jan 20 11:15:10 EST 2009


All My layers are
"PROJECTION
          "init=epsg:27572"
  END"
definition in the mapfile

And the MAP object have the same definition.

It's for this I put the  value in var georoute  definition

"reproject": true,

in the var options for  Openlayers map I define this

var options = {numZoomLevels: 30,
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326"),
units: "m",
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508,
20037508.34)};


Thanks
-- 
Martinez Morata David
*Thinking GIS*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090120/a54a3bd6/attachment.html


More information about the Users mailing list