Hi, > > I´m using OpenLayers 2.4 and because ArcXML will only be available at > 2.5 release, I´m trying to pass dinamic > generated HTTP SRC images to OpenLayers. > > The output image appears streched and not how it was originally sized. > > My code: > ... > szMyImageOutput = 'http://server/output/myimage.png' > var olMapOptions = {numZoomLevels: 1}; > olMap = new OpenLayers.Map('olMap', olMapOptions); > var layImg = new OpenLayers.Layer.Image( > 'The map', > szMyImageOutput, > new OpenLayers.Bounds(-74.99999968, > -38.592217934, -31.040414632, 7.99999979), > new OpenLayers.Size(1016, 606) ); > olMap.addLayers([layImg]); > olMap.zoomToExtent(new OpenLayers.Bounds(-74.99999968, -38.592217934, > -31.040414632, 7.99999979)); > ... > > But , after loading the layer, the image appears with size of 571w X > 606h. > > Am I missing any other parameter? > > I grab the first code from > http://www.openlayers.org/dev/examples/image-layer.html > > *Links: - http://www.sntgeo.com.br/epk/Output_Wanted.png - the way the image should appear - http://www.sntgeo.com.br/epk/Output_AfterLayerAdded.png - the way the image is appearing > > thanks in advance > Eduardo P. Kanegae _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
