Add keys to Feature tags while parsing inputSets - better list of keys for autocomplete
authorAndy Allan <gravitystorm@gmail.com>
Mon, 24 Jan 2011 16:11:48 +0000 (16:11 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Mon, 24 Jan 2011 16:11:48 +0000 (16:11 +0000)
net/systemeD/potlatch2/mapfeatures/Feature.as

index b7083ea..870e3a5 100644 (file)
@@ -79,6 +79,7 @@ package net.systemeD.potlatch2.mapfeatures {
             var inputType:String = inputXML.@type;
             var presenceStr:String = inputXML.@presence;
             var sortOrderStr:String = inputXML.@priority;
+            _tags.push( { k:String(inputXML.@key) } ); /* add the key to tags so that e.g. addr:housenumber shows up on autocomplete */
             var editor:EditorFactory = EditorFactory.createFactory(inputType, inputXML);
             if ( editor != null ) {
                 editor.presence = Presence.getPresence(presenceStr);