[OpenLayers-Dev] projection API for Map
openlayers at peterrobins.co.uk
Wed Mar 14 07:30:01 EDT 2012
On 14 March 2012 10:13, Tim-Hinnerk Heuer <th.heuer at gmail.com> wrote:
> Sorry maybe stupid question, but doesn't the map have to be in one
> projection to make sense?
that's why it needs an overhaul :-) Go to, for example,
examples/bing.html and in console type 'map.projection' and
'map.getProjection()' - confusing, or what?
Bart, AFAIA map.projection is only used if projection is not set on
the layers, so it's a convenience to enable you to set projection once
for all layers instead of having to define it on all layers. If that's
correct, perhaps it would be better to make map.projection not api,
and have it documented as a constructor option instead.
More information about the Dev