[OpenLayers-Users] SOLVED: How do I create a kamap layer change the tile, metatile sizes?

Paul Spencer pagameba at gmail.com
Mon May 12 15:11:21 EDT 2008


Steve,

it looks like the docs specify two parameters, w and h, for the  
constructor.  Do you have a suggestion on how to provide more clarity?

Cheers

Paul

On 12-May-08, at 4:03 PM, Stephen Woodbridge wrote:

> Stephen Woodbridge wrote:
>> Hi all,
>>
>> I need to create a KaMap tilecache layer in Openlayers, but it uses a
>> non-standard tile size 128x128 and 12x12 tiles per metatile. I was
>> reading through the code but it is not obvious to me how I can  
>> override
>> the tile size. Thoughts?
>
> I added this to the options hash.
>   tileSize: new OpenLayers.Size(64, 64)
>
> Also, the constructor definition for OpenLayers.Size in the API doc  
> does
> not make it clear that this is the format, as opposed to what is  
> implied
> by the w: h: notes that make it seem like you should feed it a hash,  
> like:
>
> tileSize: new OpenLayers.Size({h: 64, w: 64})
>
> -Steve
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list