[OpenLayers-Users] Why does Ka-Map have to be isBaseLayer?

Christopher Schmidt crschmidt at crschmidt.net
Thu Aug 17 00:39:21 CDT 2006


On Wed, Aug 16, 2006 at 02:17:50PM -0500, Jeff Dege wrote:
> I've noticed that the Ka-Map layer sets isBaseLayer to true.
> 
> Is there some reason why this is so?  Is there something not yet
> implemented that requires this?

It's possible to override isBaseLayer in two ways:

Setting via Options Hash:
  var kamap = new OpenLayers.Layer.KaMap("KaMap", "tile.php", 
                             {'g':'all'}, {'isBaseLayer':'false'});

Setting on the layer object, before adding it to the map:
 kamap.isBaseLayer = false;

Both of these will cause ka-map to be an overlay.

WMS has a concept of using params to determine transparency, but Ka-Map
doesn't have that, so it defaults to true (since most ka-Map Layers that
I've seen are base layers), but can be overridden (as it should be for,
for example, http://boston.freemap.in/ .)

-- 
Christopher Schmidt
Web Developer


More information about the Users mailing list