-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.47..v0.2.48 changeset translate.js
Garret Voltz edited this page Sep 27, 2019
·
1 revision
diff --git a/translations/translate.js b/translations/translate.js
index 441958c..8673f94 100644
--- a/translations/translate.js
+++ b/translations/translate.js
@@ -797,6 +797,18 @@ translate = {
},
+ swapName : function(tags)
+ {
+ // If we have an English name, make it the main "name"
+ // This is run after a check for the existance of "name"
+ if (tags['name:en'])
+ {
+ tags.name = tags['name:en'];
+ delete tags['name:en'];
+ }
+ },
+
+
fixConstruction : function(tags, key)
{
if ('condition' in tags && key in tags && tags.condition == 'construction' && tags[key] != '')
@@ -1290,6 +1302,18 @@ translate = {
}, // End addFdName
+ // debugOutput - Dump out tags or attributes to figure out what is going on
+ debugOutput : function(values,layerName,geometryType,elementType,text)
+ {
+ var kList = Object.keys(values).sort()
+ if (kList.length > 0)
+ {
+ print('LayerName: ' + layerName + ' Geometry: ' + geometryType + ' Element Type: ' + elementType);
+ for (var i = 0, fLen = kList.length; i < fLen; i++) print(text + kList[i] + ': :' + values[kList[i]] + ':');
+ }
+ }, // End debugOutput
+
+
// dumpLookup - Dump a Lookup table so we can check it
dumpLookup : function(lookupTable)
{