Remove 2-way binding from objects

This commit is contained in:
Tim Schaub
2015-04-02 15:37:53 +02:00
parent 600b76e9a2
commit f42c0cb0aa
6 changed files with 17 additions and 987 deletions

View File

@@ -170,7 +170,7 @@ ol.control.OverviewMap.prototype.setMap = function(map) {
// if no layers were set for the overviewmap map, then bind with
// those in the main map
if (this.ovmap_.getLayers().getLength() === 0) {
this.ovmap_.bindTo(ol.MapProperty.LAYERGROUP, map);
this.ovmap_.setLayerGroup(map.getLayerGroup());
}
// bind current map view, or any new one
@@ -202,7 +202,7 @@ ol.control.OverviewMap.prototype.bindView_ = function() {
// FIXME - the overviewmap view rotation currently follows the one used
// by the main map view. We could support box rotation instead. The choice
// between the 2 modes would be made in a single option
this.ovmap_.getView().bindTo(ol.ViewProperty.ROTATION, view);
// this.ovmap_.getView().bindTo(ol.ViewProperty.ROTATION, view);
};