Merge pull request #27 from elemoine/constraints

Refactoring to make constraints work at the map level
This commit is contained in:
Éric Lemoine
2012-09-27 01:42:45 -07:00
22 changed files with 195 additions and 234 deletions

View File

@@ -1,4 +1,4 @@
describe('ol.interaction.ResolutionConstraint', function() {
describe('ol.ResolutionConstraint', function() {
describe('SnapToResolution', function() {
@@ -6,7 +6,7 @@ describe('ol.interaction.ResolutionConstraint', function() {
beforeEach(function() {
resolutionConstraint =
ol.interaction.ResolutionConstraint.createSnapToResolutions(
ol.ResolutionConstraint.createSnapToResolutions(
[1000, 500, 250, 100]);
});
@@ -44,7 +44,7 @@ describe('ol.interaction.ResolutionConstraint', function() {
beforeEach(function() {
resolutionConstraint =
ol.interaction.ResolutionConstraint.createSnapToResolutions(
ol.ResolutionConstraint.createSnapToResolutions(
[1000, 500, 250, 100]);
});
@@ -94,7 +94,7 @@ describe('ol.interaction.ResolutionConstraint', function() {
beforeEach(function() {
resolutionConstraint =
ol.interaction.ResolutionConstraint.createSnapToPower(2, 1024, 10);
ol.ResolutionConstraint.createSnapToPower(2, 1024, 10);
});
describe('delta 0', function() {
@@ -152,7 +152,7 @@ describe('ol.interaction.ResolutionConstraint', function() {
beforeEach(function() {
resolutionConstraint =
ol.interaction.ResolutionConstraint.createSnapToPower(2, 1024, 10);
ol.ResolutionConstraint.createSnapToPower(2, 1024, 10);
});
describe('delta 0', function() {
@@ -184,4 +184,4 @@ describe('ol.interaction.ResolutionConstraint', function() {
});
});
goog.require('ol.interaction.ResolutionConstraint');
goog.require('ol.ResolutionConstraint');