[OpenLayers-Trac] [OpenLayers] #511: How the Layer.Image works with the extent and size(aspect ratio)
OpenLayers
trac at openlayers.org
Thu Mar 1 15:16:57 EST 2007
#511: How the Layer.Image works with the extent and size(aspect ratio)
-----------------------+----------------------------------------------------
Reporter: alilucio | Owner:
Type: bug | Status: new
Priority: trivial | Milestone: 2.5 Release
Component: general | Version: 2.3
Resolution: | Keywords: Image
-----------------------+----------------------------------------------------
Comment (by tschaub):
This is intentional behavior. There is no way (from JS) to divine the
size of the image that a user chooses for the layer - so the size
attribute is used. This can be used to (intentionally) distort an image
if you want "non-square" pixels or to modify the "native" resolution of
the image. The native resolution is calculated using the size and extent
attributes - both are required arguments for layer construction.
I'll mark this as closed unless someone confirms that this is unwanted
behavior. Perhaps I'm misinterpreting the ticket description.
--
Ticket URL: <http://trac.openlayers.org/ticket/511#comment:1>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list