diff --git a/source/Ox.UI/js/Map/Ox.Map.js b/source/Ox.UI/js/Map/Ox.Map.js index 9b39ebfc..51806c79 100644 --- a/source/Ox.UI/js/Map/Ox.Map.js +++ b/source/Ox.UI/js/Map/Ox.Map.js @@ -219,27 +219,22 @@ Ox.Map = function(options, self) { }) .appendTo(that); self.$select = Ox.MenuButton({ - items: Ox.merge( - self.options.editable - ? [{id: 'new Place', title: 'New Place...', keyboard: 'n'}, {}] - : [], - [ - { - id: 'toggleLabels', - title: self.options.showLabels - ? ['Hide Labels', 'Show Labels'] - : ['Show Labels', 'Hide Labels'], - keyboard: 'l' - }, - { - id: 'toggleControls', - title: self.options.showControls - ? ['Hide Controls', 'Show Controls'] - : ['Show Controls', 'Hide Controls'], - keyboard: 'c' - } - ] - ), + items: [ + { + id: 'toggleLabels', + title: self.options.showLabels + ? ['Hide Labels', 'Show Labels'] + : ['Show Labels', 'Hide Labels'], + keyboard: 'l' + }, + { + id: 'toggleControls', + title: self.options.showControls + ? ['Hide Controls', 'Show Controls'] + : ['Show Controls', 'Hide Controls'], + keyboard: 'c' + } + ], title: 'Options...', width: 96 })