[OpenLayers-Dev] setting tile size
Duarte Carreira
DCarreira at edia.pt
Wed Nov 8 04:37:49 EST 2006
Bart,
Thanks.
Also about setting the size of the map and number of tiles. Is this possible? How does OpenLayers calculate the number of tiles?
Duarte
-----Mensagem original-----
De: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl]
Enviada: terça-feira, 7 de Novembro de 2006 21:01
Para: Duarte Carreira
Cc: dev at openlayers.org
Assunto: Re: [OpenLayers-Dev] setting tile size
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