Skip to content

Commit

Permalink
v1.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Jun 13, 2016
2 parents bf4c67e + 915ab2c commit 77d4294
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 13 deletions.
11 changes: 10 additions & 1 deletion dist/angular-openlayers-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ angular.module('openlayers-directive', ['ngSanitize']).directive('openlayers', [
controls: controls,
interactions: interactions,
renderer: defaults.renderer,
view: view
view: view,
loadTilesWhileAnimating: defaults.loadTilesWhileAnimating,
loadTilesWhileInteracting: defaults.loadTilesWhileInteracting
});

scope.$on('$destroy', function() {
Expand Down Expand Up @@ -2359,6 +2361,13 @@ angular.module('openlayers-directive').factory('olMapDefaults', ["$q", "olHelper
newDefaults.styles = angular.extend(newDefaults.styles, userDefaults.styles);
}

if (isDefined(userDefaults.loadTilesWhileAnimating)) {
newDefaults.loadTilesWhileAnimating = userDefaults.loadTilesWhileAnimating;
}

if (isDefined(userDefaults.loadTilesWhileInteracting)) {
newDefaults.loadTilesWhileInteracting = userDefaults.loadTilesWhileInteracting;
}
}

defaults[scopeId] = newDefaults;
Expand Down
6 changes: 3 additions & 3 deletions dist/angular-openlayers-directive.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/angular-openlayers-directive.min.no-header.js

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion dist/angular-openlayers-directive.pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ angular.module('openlayers-directive', ['ngSanitize']).directive('openlayers', f
controls: controls,
interactions: interactions,
renderer: defaults.renderer,
view: view
view: view,
loadTilesWhileAnimating: defaults.loadTilesWhileAnimating,
loadTilesWhileInteracting: defaults.loadTilesWhileInteracting
});

scope.$on('$destroy', function() {
Expand Down Expand Up @@ -2359,6 +2361,13 @@ angular.module('openlayers-directive').factory('olMapDefaults', function($q, olH
newDefaults.styles = angular.extend(newDefaults.styles, userDefaults.styles);
}

if (isDefined(userDefaults.loadTilesWhileAnimating)) {
newDefaults.loadTilesWhileAnimating = userDefaults.loadTilesWhileAnimating;
}

if (isDefined(userDefaults.loadTilesWhileInteracting)) {
newDefaults.loadTilesWhileInteracting = userDefaults.loadTilesWhileInteracting;
}
}

defaults[scopeId] = newDefaults;
Expand Down
4 changes: 3 additions & 1 deletion examples/030-custom-parameters-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
zoom: false,
rotate: false,
attribution: false
}
},
loadTilesWhileAnimating: true,
loadTilesWhileInteracting: true
}
});
} ]);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"load-grunt-config": "^0.17.1",
"matchdep": "~0.3.0",
"phantomjs": "^1.9.18",
"protractor": "^2.0.0",
"protractor": "~2.5.0",
"publish-latest": "^1.1.2",
"semantic-release": "^4.3.5"
},
Expand All @@ -65,5 +65,5 @@
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"main": "dist/angular-openlayers-directive",
"version": "1.13.1"
"version": "1.14.0"
}
4 changes: 3 additions & 1 deletion src/directives/openlayers.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ angular.module('openlayers-directive', ['ngSanitize']).directive('openlayers', f
controls: controls,
interactions: interactions,
renderer: defaults.renderer,
view: view
view: view,
loadTilesWhileAnimating: defaults.loadTilesWhileAnimating,
loadTilesWhileInteracting: defaults.loadTilesWhileInteracting
});

scope.$on('$destroy', function() {
Expand Down
7 changes: 7 additions & 0 deletions src/services/olMapDefaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ angular.module('openlayers-directive').factory('olMapDefaults', function($q, olH
newDefaults.styles = angular.extend(newDefaults.styles, userDefaults.styles);
}

if (isDefined(userDefaults.loadTilesWhileAnimating)) {
newDefaults.loadTilesWhileAnimating = userDefaults.loadTilesWhileAnimating;
}

if (isDefined(userDefaults.loadTilesWhileInteracting)) {
newDefaults.loadTilesWhileInteracting = userDefaults.loadTilesWhileInteracting;
}
}

defaults[scopeId] = newDefaults;
Expand Down
2 changes: 1 addition & 1 deletion test/protractor.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports.config = {
// chromeDriver)

// The location of the selenium standalone server .jar file.
seleniumServerJar: '../node_modules/protractor/selenium/selenium-server-standalone-2.45.0.jar',
seleniumServerJar: '../node_modules/protractor/selenium/selenium-server-standalone-2.47.1.jar',
// The port to start the selenium server on, or null if the server should
// find its own unused port.
seleniumPort: null,
Expand Down

0 comments on commit 77d4294

Please sign in to comment.