[OpenLayers-Users] SOLVED: How do I create a kamap layer change
the tile, metatile sizes?
Stephen Woodbridge
woodbri at swoodbridge.com
Mon May 12 20:49:24 EDT 2008
Paul Spencer wrote:
> 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?
I looked at it again, and it is consistent with the others so that is
good. I guess just leave it as is. For clarity an example would be good,
but we already have examples section so duplicating fragments of that in
the api is probably not of much value. Not sure where my head was at
when I looked at this one.
You may return to your regularly scheduled programming.
Thanks,
-steve
> 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