+ } else if (featureType(feature) == "node") {
+ return "#{I18n.t('browse.start_rjs.object_list.selected.type.node')} " + feature.osm_id;
+ } else if (featureType(feature) == "way") {
+ return "#{I18n.t('browse.start_rjs.object_list.selected.type.way')} " + feature.osm_id;
+ }
+ }
+
+ function featureNameHistory(feature) {
+ if (feature.attributes.name) {
+ return feature.attributes.name;
+ } else if (featureType(feature) == "node") {
+ return "#{I18n.t('browse.start_rjs.object_list.history.type.node')} " + feature.osm_id;
+ } else if (featureType(feature) == "way") {
+ return "#{I18n.t('browse.start_rjs.object_list.history.type.way')} " + feature.osm_id;