diff --git a/modules/core/way.js b/modules/core/way.js index 91f50670a..28458b207 100644 --- a/modules/core/way.js +++ b/modules/core/way.js @@ -68,7 +68,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)); }