On Tue, Sep 14, 2010 at 1:02 PM, <[email protected]> wrote:
>
> On Sep 14, 2010, at 6:06 AM, ext P Kishor wrote:
>
>> The image returned when singleTile: true is 1200 x 600 px. I can't
>> figure out where this is set. There is a method called getImageSize()
>> referenced in the getURL() method in the WMS constructor, but I can't
>> figure out where this 1200x600 value is hard-coded and how I can
>> override this.
>
> This isn't hardcoded. Presumably your map div is 800 x 400, and your
> ratio is set to the default of 1.5 (a buffer to increase the size and
> make more dragging room available).
hmmm... you are correct. My map div is indeed 800 x 400. If the
"ratio" is default of 1.5, can I set the ratio to be 1? I don't see
any mention of it in either the Map or the Layer constructor.
Thanks,
>
> -- Chris
>
>>
>> getURL: function (bounds) {
>> bounds = this.adjustBounds(bounds);
>>
>> var imageSize = this.getImageSize();
>>
>>
>> There is also the OpenLayers.Size constructor, but that refers to tile
>> size... is that the place? What is the best way?
>>
>> --
>> Puneet Kishor
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
--
Puneet Kishor
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users