Sorry I figured out how to add a custom control by using the Button control and creating a function to run when the button is clicked. My next question is how do I change the icon image of the button if I want to have 2 or more custom buttons? i was able to change the icon of one by using the following code but it is the same for each button, I need different icons for each. Thanks for advice.
.olControlPanel .olControlButtonItemActive { background-color: blue; background-image: url("OpenLayers-2.9.1/theme/default/img/pan_on.png"); } .olControlPanel .olControlButtonItemInActive { background-color: orange; background-image: url("OpenLayers-2.9.1/theme/default/img/pan_off.png"); var btn = new OpenLayers.Control.Button({trigger: onTrigger}); -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Add-custom-control-possible-tp5393642p5393782.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users