Re: [OpenLayers-Users] Single Tile for the entire Map bounds

2010-08-04 Thread Stephen Woodbridge
Kalyan Kamepalli wrote:
> By the way, what is the parameter ration: 1 does ?? what are the valid 
> values for it ??

Ratio: 1 requests an image the size of the viewport. Ratio:2 requests an 
image h*2 X w*2 so you can do some panning without redrawing the image, 
but at the cost of generating a larger image and transfering a larger 
image to the browser.

I think it defaults to something like 1.5. I always set it to 1, but 
your needs may be different.

-Steve

> On Wed, Aug 4, 2010 at 2:43 PM, Kalyan Kamepalli 
> mailto:kalyan.kamepa...@gmail.com>> wrote:
> 
> That solved my problem. Thanks Steve.
> 
> 
> 
> On Wed, Aug 4, 2010 at 2:11 PM, Stephen Woodbridge
> mailto:wood...@swoodbridge.com>> wrote:
> 
> Yes you can do this by setting the layer option:
> 
> singleTile: true,
> ratio: 1
> 
> in mapserver or wms and maybe some others.
> 
> -Steve
> 
> Kalyan Kamepalli wrote:
> 
> Hello Group,
> Is it possible to have a single map tile ( WMS and/or other
> map services ) in OpenLayers ?? I want to have a single tile
> for the whole bounds I set for the map. Also, when I zoom in
> , out or pan the map should generate single tile but not
> multiple tiles.
> Any one has any ideas ??
> 
> 
> 
> 
> ___
> Users mailing list
> Users@openlayers.org 
> http://openlayers.org/mailman/listinfo/users
> 
> 
> 
> 

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Single Tile for the entire Map bounds

2010-08-04 Thread Armin Burger

> Subject: [OpenLayers-Users] Single Tile for the entire Map bounds

> Hello Group,
> 
> Is it possible to have a single map tile ( WMS and/or other map services )
> in OpenLayers ?? I want to have a single tile for the whole bounds I set
> for
> the map. Also, when I zoom in , out or pan the map should generate single
> tile but not multiple tiles.
> 
> Any one has any ideas ??


This config parameter should do what you want:
 
http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Layer/Grid-js.html#OpenLayers.Layer.Grid.singleTile

armin
-- 
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.  
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Single Tile for the entire Map bounds

2010-08-03 Thread Eric Lemoine
On Wednesday, August 4, 2010, Kalyan Kamepalli
 wrote:
> Hello Group,
>
>
> Is it possible to have a single map tile ( WMS and/or other map services ) in 
> OpenLayers ?? I want to have a single tile for the whole bounds I set for the 
> map. Also, when I zoom in , out or pan the map should generate single tile 
> but not multiple tiles.
>
>
> Any one has any ideas ??

Hi. Use singleTile:true in your WMS layer options.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users