Skip to content

Commit

Permalink
v1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Feb 18, 2016
2 parents 77bbc69 + b8057ed commit 9f3386d
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 11 deletions.
8 changes: 4 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"dist/angular-openlayers-directive.min.js"
],
"dependencies": {
"angular": "*",
"angular-sanitize": "*",
"angular": "1.4.9",
"angular-sanitize": "1.4.9",
"openlayers3": "https://github.com/tombatossals/ol3-compiled.git#3.8.2"
},
"devDependencies": {
"jquery": "*",
"angular-route": "*",
"angular-mocks": "*"
"angular-route": "1.4.9",
"angular-mocks": "1.4.9"
},
"ignore": [
"**/.*",
Expand Down
9 changes: 9 additions & 0 deletions dist/angular-openlayers-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -1710,6 +1710,15 @@ angular.module('openlayers-directive').factory('olHelpers', ["$q", "$log", "$htt
tileUrlFunction: source.tileUrlFunction
});
break;
case 'Zoomify':
if (!source.url || !angular.isArray(source.imageSize) || source.imageSize.length !== 2) {
$log.error('[AngularJS - Openlayers] - Zoomify Layer needs valid url and imageSize properties');
}
oSource = new ol.source.Zoomify({
url: source.url,
size: source.imageSize
});
break;
}

// log a warning when no source could be created for the given type
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.

9 changes: 9 additions & 0 deletions dist/angular-openlayers-directive.pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -1710,6 +1710,15 @@ angular.module('openlayers-directive').factory('olHelpers', function($q, $log, $
tileUrlFunction: source.tileUrlFunction
});
break;
case 'Zoomify':
if (!source.url || !angular.isArray(source.imageSize) || source.imageSize.length !== 2) {
$log.error('[AngularJS - Openlayers] - Zoomify Layer needs valid url and imageSize properties');
}
oSource = new ol.source.Zoomify({
url: source.url,
size: source.imageSize
});
break;
}

// log a warning when no source could be created for the given type
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"main": "dist/angular-openlayers-directive",
"version": "1.8.2"
"version": "1.9.0"
}
9 changes: 9 additions & 0 deletions src/services/olHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,15 @@ angular.module('openlayers-directive').factory('olHelpers', function($q, $log, $
tileUrlFunction: source.tileUrlFunction
});
break;
case 'Zoomify':
if (!source.url || !angular.isArray(source.imageSize) || source.imageSize.length !== 2) {
$log.error('[AngularJS - Openlayers] - Zoomify Layer needs valid url and imageSize properties');
}
oSource = new ol.source.Zoomify({
url: source.url,
size: source.imageSize
});
break;
}

// log a warning when no source could be created for the given type
Expand Down

0 comments on commit 9f3386d

Please sign in to comment.