[OpenLayers-Dev] setting tile size
Bart van den Eijnden (OSGIS)
bartvde at osgis.nl
Tue Nov 7 16:01:10 EST 2006
Hi,
When creating the map or layer, add a tileSize option:
Map('map', {'tileSize': new OpenLayers.Size(512,512)});
Best regards,
Bart
Duarte Carreira schreef:
> How is it possible to set the tile size to a custom size?
>
> Regardless of the map size the tile size is always 256x256.
> Does the map div set the map size? For instance, setting width and
> height of the map div to 400x300 sets the size of the map object?
> When I try a 400x300 map I still download 29 tiles, each being
> 256x256... which seems too much for such a small map.
>
> Can anyone shed some light on this please?
>
> Thanks,
> Duarte
> ------------------------------------------------------------------------
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
--
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde at osgis.nl
http://www.osgis.nl
More information about the Dev
mailing list