Suppose my image is w and h, how I code? Into extent? Why? -----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Wednesday, August 24, 2011 6:20 PM To: JK Chen Cc: [email protected] 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: [email protected] [mailto:[email protected]] Im Auftrag von jk Gesendet: Mittwoch, 24. August 2011 21:27 An: [email protected] 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 [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
