mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 05:49:16 +02:00
Lint fixes
This commit is contained in:
+5
-5
@@ -432,11 +432,11 @@ function generateTaginfo(presets, fields) {
|
||||
|
||||
function setObjectType(tag, input) {
|
||||
tag.object_types = [];
|
||||
const mapping = { "point" : "node",
|
||||
"vertex" : "node",
|
||||
"line" : "way",
|
||||
"relation" : "relation",
|
||||
"area" : "area" };
|
||||
const mapping = { 'point' : 'node',
|
||||
'vertex' : 'node',
|
||||
'line' : 'way',
|
||||
'relation' : 'relation',
|
||||
'area' : 'area' };
|
||||
|
||||
input.geometry.forEach(function(geom) {
|
||||
if (tag.object_types.indexOf(mapping[geom]) === -1)
|
||||
|
||||
Reference in New Issue
Block a user