Skip to content

Commit

Permalink
v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Mar 6, 2018
2 parents c069b32 + ae38bd2 commit 33efabd
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
5 changes: 3 additions & 2 deletions dist/angular-openlayers-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -1890,11 +1890,12 @@ angular.module('openlayers-directive').factory('olHelpers', ["$q", "$log", "$htt
});
break;
case 'XYZ':
if (!source.url && !source.tileUrlFunction) {
$log.error('[AngularJS - Openlayers] - XYZ Layer needs valid url or tileUrlFunction properties');
if (!source.url && !source.urls && !source.tileUrlFunction) {
$log.error('[AngularJS - Openlayers] - XYZ Layer needs valid url(s) or tileUrlFunction properties');
}
oSource = new ol.source.XYZ({
url: source.url,
urls: source.urls,
attributions: createAttribution(source),
minZoom: source.minZoom,
maxZoom: source.maxZoom,
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-openlayers-directive.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular-openlayers-directive.min.no-header.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/angular-openlayers-directive.pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -1890,11 +1890,12 @@ angular.module('openlayers-directive').factory('olHelpers', function($q, $log, $
});
break;
case 'XYZ':
if (!source.url && !source.tileUrlFunction) {
$log.error('[AngularJS - Openlayers] - XYZ Layer needs valid url or tileUrlFunction properties');
if (!source.url && !source.urls && !source.tileUrlFunction) {
$log.error('[AngularJS - Openlayers] - XYZ Layer needs valid url(s) or tileUrlFunction properties');
}
oSource = new ol.source.XYZ({
url: source.url,
urls: source.urls,
attributions: createAttribution(source),
minZoom: source.minZoom,
maxZoom: source.maxZoom,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"main": "dist/angular-openlayers-directive",
"version": "2.0.1"
"version": "2.1.0"
}
5 changes: 3 additions & 2 deletions src/services/olHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,11 +634,12 @@ angular.module('openlayers-directive').factory('olHelpers', function($q, $log, $
});
break;
case 'XYZ':
if (!source.url && !source.tileUrlFunction) {
$log.error('[AngularJS - Openlayers] - XYZ Layer needs valid url or tileUrlFunction properties');
if (!source.url && !source.urls && !source.tileUrlFunction) {
$log.error('[AngularJS - Openlayers] - XYZ Layer needs valid url(s) or tileUrlFunction properties');
}
oSource = new ol.source.XYZ({
url: source.url,
urls: source.urls,
attributions: createAttribution(source),
minZoom: source.minZoom,
maxZoom: source.maxZoom,
Expand Down

0 comments on commit 33efabd

Please sign in to comment.