javascript - How to remove the city label in openlayer? -
i have wms layer this
var wms_layer = new openlayers.layer.wms( 'openlayers wms', 'http://vmap0.tiles.osgeo.org/wms/vmap0', {layers: 'basic,clabel,ctylabel,statelabel', transparent: true}, {isbaselayer: false, opacity: .7} );
how remove ctylabel or statelabel wms layer?
i want remove labels on fly. not @ creation of layer. when user interact map want add/remove labels ctylabel or statelabel. how do this?
if have created layer , want remove labels later:
wms_layer.mergenewparams({layers: 'basic,clabel'});
Comments
Post a Comment