mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Merge pull request #3405 from edpop/patch-3
Fix way disappearing due to invalid "layer" tag
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user