Alexandre Dube wrote: > Eric, > > Eric Lemoine wrote: >>> I personally don't like the idea of auto switching from >>> singleTile:fase to singleTile:true and vice-versa. I'd prefer >>> introducing a useMaxTileSize boolean option to OpenLayers.Layer. When >>> useMaxTileSize is true, and when maxHeight and maxWidth are specified >>> in the layer, the tile size will be set to (maxHeight, maxWidth), no >>> matter the value of tileSize. >>> >> actually: no matter the values of singleTile and tileSize. >> > > Thanks for the reply. > > That's the idea I had in mind at first too. I made some tests againts a > specific WMS server but both maxWidth and maxHeight values were set to > 4096 so I had a huge tile of 4096x4096 which took a lo~ng time to > render. That's where I though : "I only need 'singleTile: true' unless > the map size goes bigger than 4096x4096, then I would need to switch to > tiles". > > Do you see what I mean ? > > Unless I'm mistaken, setting both 'singleTile: true' and > 'useMaxTileSize: true' and set both maxSizes values wouldn't be enough. > Any idea ? Am I wrong ? >
I'm pretty sure the maxWidth and maxHeight aren't going to be used in practice to limit tiles fetched for display in a browser. My assumption is that these limits will be used for servers to control the images sizes that might be requested for a desktop application or printing. Please don't make a change in GeoExt to use maxWidth/maxHeight for a tile request. Tim -- Tim Schaub OpenGeo - http://opengeo.org Expert service straight from the developers. _______________________________________________ Dev mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/dev
