Skip to content

Commit

Permalink
Merge pull request #1039 from jgravois/custom_3857
Browse files Browse the repository at this point in the history
dont remap custom web mercator LODs
  • Loading branch information
jgravois authored Jan 4, 2018
2 parents a95cdce + 560ed3f commit a86e848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Layers/TiledMapLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export var TiledMapLayer = TileLayer.extend({
this.options.attribution = metadata.copyrightText;
map.attributionControl.addAttribution(this.getAttribution());
}
if (map.options.crs === L.CRS.EPSG3857 && sr === 102100 || sr === 3857) {
if (map.options.crs === L.CRS.EPSG3857 && (sr === 102100 || sr === 3857)) {
this._lodMap = {};
// create the zoom level data
var arcgisLODs = metadata.tileInfo.lods;
Expand Down

0 comments on commit a86e848

Please sign in to comment.