Lint fixes

This commit is contained in:
mmd-osm
2018-03-27 20:10:38 +02:00
parent c92eb99272
commit 126d33308f
+5 -5
View File
@@ -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)