mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-22 03:36:37 +02:00
Merge pull request #3405 from edpop/patch-3
Fix way disappearing due to invalid "layer" tag
This commit is contained in:
+1
-1
@@ -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