Merge pull request #946 from tschaub/control-options

Remove map from ControlOptions.
This commit is contained in:
Tim Schaub
2013-09-02 05:40:45 -07:00
15 changed files with 10 additions and 38 deletions

View File

@@ -50,7 +50,6 @@ app.RotateNorthControl = function(opt_options) {
ol.control.Control.call(this, {
element: element,
map: options.map,
target: options.target
});

View File

@@ -26,9 +26,8 @@ var createMap = function(divId) {
zoom: 2
})
});
zoomslider = new ol.control.ZoomSlider({
map: map
});
zoomslider = new ol.control.ZoomSlider();
map.addControl(zoomslider);
return map;
};