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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -