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 b7083ea963c8468438e8515ab4cf6c7df55841ec..870e3a52c67644a70cf867258a559141e1e5a919 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);