[OpenLayers-Trac] [OpenLayers] #2914: Respect layer projection if
it equals the map projection
OpenLayers
trac-20090302 at openlayers.org
Thu Nov 4 05:36:36 EDT 2010
#2914: Respect layer projection if it equals the map projection
-----------------------+----------------------------------------------------
Reporter: ahocevar | Owner: euzuro
Type: feature | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Layer.WMS | Version: 2.10
Keywords: | State:
-----------------------+----------------------------------------------------
With several projection codes available for the same projection, but WMS
servers that do not support all of these, it makes sense to respect the
layer projection for WMS GetMap requests when they equal the map
projection.
Let's say our map is in EPSG:3857, the official web mercator EPSG code,
but it uses a layer that only supports the equal EPSG:900913 projection,
we should be able to do:
{{{
var map = new OpenLayers.Map("map", {
projection: "EPSG:3857"
/* ... */
});
var layer = new OpenLayers.Layer.WMS("mywms", "/path/to/wms",
{layers: "world"},
{projection: "EPSG:900913"}
);
}}}
--
Ticket URL: <http://trac.openlayers.org/ticket/2914>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list