Dear list,
I have a piece of code that creates a control and puts it in a panel. here's a snippet: //snippet var container = document.getElementById("mypanel"); var panel = new OpenLayers.Control.Panel( {div: container}); function addControl(layer, controlName){ //create control var newc = new OpenLayers.Control.DrawFeature(layer, OpenLayers.Handler.Point {title:'Draw a feature on ' +controlName} ); //adding control panel.addControls([newc]); } //end snippet Now, I want to modify the control style via Javascript (and not via css). For example, i'd like to change the background image just for the newly added control (an image for active control and an image for inactive control) Can this be accomplished? Thanks a lot Mauro -- View this message in context: http://n2.nabble.com/Control-styling-via-javascript-tp2951328p2951328.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users