[OpenLayers-Users] Override 256x256 HEIGHT WIDTH in Layer.WMS
Ryan Hofschneider
ryan.hofschneider at gmail.com
Fri Jul 18 15:51:03 EDT 2008
On Jul 18, 2008, at 12:37 PM, Don Sullivan wrote:
>
> How do I override the HEIGHT=256,WIDTH=256 in OpenLayers. Layer.WMS
> call
> to OGC WMS server ?
Through the tileSize property:
http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.tileSize
var options = {
tileSize: new OpenLayers.Size(512,512)
}
var map = new OpenLayers.Map("map", options);
Cheers,
Ryan
More information about the Users
mailing list