Skip to content

Commit

Permalink
fix (protocols) : stop using layer's option tileMatrixSet in WMS prov…
Browse files Browse the repository at this point in the history
…ider
  • Loading branch information
gchoqueux authored and autra committed Dec 15, 2017
1 parent f328e78 commit 5a482e9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Core/Scheduler/Providers/WMS_Provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,7 @@ WMS_Provider.prototype.url = function url(bbox, layer) {
};

WMS_Provider.prototype.tileTextureCount = function tileTextureCount(tile, layer) {
if (tile.extent.crs() == layer.projection) {
return 1;
} else {
const tileMatrixSet = layer.options.tileMatrixSet;
OGCWebServiceHelper.computeTileMatrixSetCoordinates(tile, tileMatrixSet);
return tile.getCoordsForLayer(layer).length;
}
return tile.extent.crs() == layer.projection ? 1 : tile.getCoordsForLayer(layer).length;
};

WMS_Provider.prototype.preprocessDataLayer = function preprocessDataLayer(layer) {
Expand Down

0 comments on commit 5a482e9

Please sign in to comment.