[OpenLayers-Users] SphericalMercator and SRS aliases epsg:900913, epsg:3857, epsg:3785, epsg:102113

Andreas Hocevar ahocevar at opengeo.org
Mon Jul 26 02:12:24 EDT 2010


Hi,

what would people think about the following:

layer.projection -> the SRS to use in OpenLayers internally
layer.params.SRS (or layer.params.CRS etc.) -> the SRS to send to the server

Currently, we overwrite params.SRS/CRS/... with layer.projection. Nobody says we have to.

Opinions?

Regards,
Andreas.

On Jul 26, 2010, at 00:02 , Anne Blankert wrote:

> 
> Hello Arnd,
> 
> An option named "sphericalmercatoralias" is indeed very specific to
> sphericalmercator.
> Maybe, an option named "projection" is not specific enough. Users could
> think that such an option would somehow magically allow reprojecting the
> overlay projection to the map projection. Things would get mixed up, when
> sending bounding box coordinates using the wrong projection.
> So maybe an option named "projectionalias" would be a better name than
> "sphericalmercatoralias" or "projection"?
> "projectionalias" stresses the fact that the projection itself should not be
> different, just the code that is being used for the projection.
> 
> Anne
> 
> 
> -- 
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/SphericalMercator-and-SRS-aliases-epsg-900913-epsg-3857-epsg-3785-epsg-102113-tp5311417p5336039.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.




More information about the Users mailing list