Skip to content

Commit

Permalink
fix(olHelpers): change ol.tilegrid.XYZ to ol.tilegrid.createXYZ
Browse files Browse the repository at this point in the history
fix for error with new versions of openlayers where .XYZ returns "not a function"
  • Loading branch information
Ashley Retallack committed Oct 8, 2015
1 parent 6efedb4 commit 30c6d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/olHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ angular.module('openlayers-directive').factory('olHelpers', function($q, $log, $
projection: projection,
attributions: createAttribution(source),
format: source.format,
tileGrid: new ol.tilegrid.XYZ({
tileGrid: new ol.tilegrid.createXYZ({
maxZoom: source.maxZoom || 19
})
});
Expand Down

0 comments on commit 30c6d1f

Please sign in to comment.