Skip to content

Commit 9f3386d

Browse files
committed
v1.9.0
2 parents 77bbc69 + b8057ed commit 9f3386d

File tree

7 files changed

+38
-11
lines changed

7 files changed

+38
-11
lines changed

bower.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
"dist/angular-openlayers-directive.min.js"
1212
],
1313
"dependencies": {
14-
"angular": "*",
15-
"angular-sanitize": "*",
14+
"angular": "1.4.9",
15+
"angular-sanitize": "1.4.9",
1616
"openlayers3": "https://github.com/tombatossals/ol3-compiled.git#3.8.2"
1717
},
1818
"devDependencies": {
1919
"jquery": "*",
20-
"angular-route": "*",
21-
"angular-mocks": "*"
20+
"angular-route": "1.4.9",
21+
"angular-mocks": "1.4.9"
2222
},
2323
"ignore": [
2424
"**/.*",

dist/angular-openlayers-directive.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,6 +1710,15 @@ angular.module('openlayers-directive').factory('olHelpers', ["$q", "$log", "$htt
17101710
tileUrlFunction: source.tileUrlFunction
17111711
});
17121712
break;
1713+
case 'Zoomify':
1714+
if (!source.url || !angular.isArray(source.imageSize) || source.imageSize.length !== 2) {
1715+
$log.error('[AngularJS - Openlayers] - Zoomify Layer needs valid url and imageSize properties');
1716+
}
1717+
oSource = new ol.source.Zoomify({
1718+
url: source.url,
1719+
size: source.imageSize
1720+
});
1721+
break;
17131722
}
17141723

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

dist/angular-openlayers-directive.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-openlayers-directive.min.no-header.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-openlayers-directive.pre.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,6 +1710,15 @@ angular.module('openlayers-directive').factory('olHelpers', function($q, $log, $
17101710
tileUrlFunction: source.tileUrlFunction
17111711
});
17121712
break;
1713+
case 'Zoomify':
1714+
if (!source.url || !angular.isArray(source.imageSize) || source.imageSize.length !== 2) {
1715+
$log.error('[AngularJS - Openlayers] - Zoomify Layer needs valid url and imageSize properties');
1716+
}
1717+
oSource = new ol.source.Zoomify({
1718+
url: source.url,
1719+
size: source.imageSize
1720+
});
1721+
break;
17131722
}
17141723

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@
6565
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
6666
},
6767
"main": "dist/angular-openlayers-directive",
68-
"version": "1.8.2"
68+
"version": "1.9.0"
6969
}

src/services/olHelpers.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,15 @@ angular.module('openlayers-directive').factory('olHelpers', function($q, $log, $
532532
tileUrlFunction: source.tileUrlFunction
533533
});
534534
break;
535+
case 'Zoomify':
536+
if (!source.url || !angular.isArray(source.imageSize) || source.imageSize.length !== 2) {
537+
$log.error('[AngularJS - Openlayers] - Zoomify Layer needs valid url and imageSize properties');
538+
}
539+
oSource = new ol.source.Zoomify({
540+
url: source.url,
541+
size: source.imageSize
542+
});
543+
break;
535544
}
536545

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

0 commit comments

Comments
 (0)