[OpenLayers-Users] setting isBaseLayer to false cripples overlay.

[Elydian] Riny Heijdendael riny at elydian.net
Wed Jun 6 01:30:11 PDT 2012


Hi there,

I made a small map, that displays a  WMS layer correct if it is a 
baselayer, but
is crippled when baselayer is set to false.

You can see example at http://jsfiddle.net/yhEBN/1/light/

Does anyone know why this fails?

Thank you,

Riny
------------
var map = new OpenLayers.Map("map");
var osm = new OpenLayers.Layer.OSM("OpenStreetMap");

var sedac = new OpenLayers.Layer.WMS("Population Density", 
"http://sedac.ciesin.columbia.edu/geoserver/ows", {
layers: 'gpw-v3:gpw-v3-population-density_2000',
transparency : true
},{
opacity: 0.5,
_*isBaseLayer: false,*_
});

map.addLayer(osm);
map.addLayer(sedac);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(0, 0), 2);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120606/420d3af9/attachment-0001.html>


More information about the Users mailing list