[OpenLayers-Users] KaMap Layer Changes

Christopher Schmidt crschmidt at crschmidt.net
Mon Jun 26 09:35:16 CDT 2006


I've just committed some changes to the KaMap Layer, for those of you
who might have been developing against it, which change its behavior
slightly.

However, the end result is that it now works at any resolution, with any
tile size! This means that you can even combine differently sized ka-Map
tiles (something I didn't rightly expect that I'd be able to pull off).

The new API for creating a ka-Map layer is:

name, url, {params}, units, resolution

url is the URL of the tile.php for the ka-map setup
params is typically just {map: 'name', g: 'group'}, although you can
leave the g: off for the default. These are passed as params directly to
the tile.php backend, so there's also support for other ones like "i"
that tile.php also supports.

units is one of:
  'inches'
  'feet'
  'miles'
  'meters'
  'kilometers'
  'degrees'
and must match the units in the backend mapfile. Default is 'degrees'.

Resolution is by default 72, but may be different depending on your
mapserver config.

You can see an example of two different ka-map layers at:

http://openlayers.org/dev/examples/kamap.html

-- 
Christopher Schmidt
Web Developer


More information about the Users mailing list