Merge pull request #3405 from edpop/patch-3

Fix way disappearing due to invalid "layer" tag
This commit is contained in:
Bryan Housel
2016-10-01 10:26:41 -04:00
committed by GitHub

View File

@@ -69,7 +69,7 @@ _.extend(Way.prototype, {
layer: function() {
// explicit layer tag, clamp between -10, 10..
if (this.tags.layer !== undefined) {
if (isFinite(this.tags.layer)) {
return Math.max(-10, Math.min(+(this.tags.layer), 10));
}