id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,state
2399,"give map a method ""addControls"" to add an array of controls to the map",marcjansen,,"For adding layers to the map we currently have the following methods: 

{{{
map.addLayer( aLayer ); // adds one layer
map.addLayers( anArrayOfLayers ); // adds all layers in the array
}}}

but for adding controls we only have

{{{
map.addControl( aControl, aPx ); // adds one control
}}}

It would be nice (and consistent with the API) to have a method

{{{
map.addControls( anArrayOfControl, anArrayOfPx );   // adds multiple controls
}}}

The attached patch provides that method and has additional tests for the new functions.

",feature,closed,minor,2.9 Release,Map,2.8,fixed,,,Complete
