Adding Layers to Heron Template

المشرف العام

Administrator
طاقم الإدارة
I've got this piece of code below that is supposed to display two base layers but now the OSM_LAYER disables(becomes blurry and inactive in the layer tree) the WORLD_LAYER, I'm not sure what the problem is. If it fits, I'd welcome the advice on how to change the OSM_LAYER to be in the format of WORLD_LAYER.

Heron.options.map.layers = [ new OpenLayers.Layer.OSM(),new OpenLayers.Layer.WMS( "World image", 'http://www2.demis.nl/wms/wms.ashx?WMS=BlueMarble', {layers: "Earth Image", format: 'image/png'}, {singleTile: true, isBaseLayer: true, visibility: false, noLegend: true})]

أكثر...
 
أعلى