[OpenLayers-Users] how to change the size of OpenLayers.Layer.Image

JK Chen jk.chen at sdl.usu.edu
Thu Aug 25 10:22:41 EDT 2011


Suppose my image is w and h, how I code? Into extent? Why?

-----Original Message-----
From: arnd.wippermann at web.de [mailto:arnd.wippermann at web.de] 
Sent: Wednesday, August 24, 2011 6:20 PM
To: JK Chen
Cc: users at openlayers.org
Subject: AW: [OpenLayers-Users] how to change the size of OpenLayers.Layer.Image

Hi,

Try to set a new extent for the layer:

imgLayer.extent=new OpenLayers.Bounds(-70,-10,70,10);

This is perhaps needed to refresh the layer imgLayer.setVisibility(false); imgLayer.setVisibility(true);
 
Arnd

-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von jk
Gesendet: Mittwoch, 24. August 2011 21:27
An: users at openlayers.org
Betreff: [OpenLayers-Users] how to change the size of OpenLayers.Layer.Image

Hi,

I am trying to use OL to view military images, jpeg, of various dimensions.
I need to maintain the orginal aspect. Now, how to specify the size values when creating a new Layer.Image?

Is it possible to change those values after image loads?

How?

Thanks.

JK

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/how-to-change-the-size-of-OpenLayers-
Layer-Image-tp6721664p6721664.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users



More information about the Users mailing list