Being very new to OpenLayers I finally figured out how to add a control button to the map. I still have to figure out how to get the indices of the layers using the layer names rather than hard coding them.
//Refresh Map control var refreshcon = new OpenLayers.Control.Button({title: "Refreshes the Biomass Sites.", displayClass: "olControlRefreshMap", trigger: myRefreshMap}); function myRefreshMap(){ if( isBiomass ) { map.layers[2].redraw(true); map.layers[3].redraw(true); } } -- View this message in context: http://n2.nabble.com/OpenLayers-map-AfterDraw-event-tp3955274p3973690.html Sent from the OpenLayers Dev mailing list archive at Nabble.com. _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev