Use ol.Collection#extend in examples

This commit changes the examples to using ol.control.defaults().extend to extend the collection of controls. This is in preparation for a future commit that will remove the 2nd argument to ol.control.defaults. The same is done for ol.interaction.defaults.
This commit is contained in:
Éric Lemoine
2013-08-19 14:16:22 +02:00
parent 41fe103fa4
commit 3f6b9c9434
10 changed files with 11 additions and 11 deletions

View File

@@ -47,7 +47,7 @@ var layers = [
];
var map = new ol.Map({
controls: ol.control.defaults({}, [
controls: ol.control.defaults().extend([
new ol.control.ScaleLine({
units: ol.control.ScaleLineUnits.METRIC
})