[OpenLayers-Users] Icons in LayerSwitcher

BMcBride bmcbride at chacompanies.com
Wed May 26 14:02:55 EDT 2010


Mak,

You can accomplish this very easily by including some html in your layer
constructor code...

var layer = new OpenLayers.Layer.WMS( " http://www.myhost.com/myimage.png
 OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer);


-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com 
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Icons-in-LayerSwitcher-tp5104920p5104952.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list