aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Map.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-04 08:03:57 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-04 08:03:57 +1300
commit41e50383671843823a9c41d11b02a8cd9165e0b0 (patch)
treedbe523d07c683fcf97baa176651f6ea5a66e6233 /web/app/view/Map.js
parent9adb468ca86dc1b40c29c692a3710426174ea5f9 (diff)
downloadtrackermap-web-41e50383671843823a9c41d11b02a8cd9165e0b0.tar.gz
trackermap-web-41e50383671843823a9c41d11b02a8cd9165e0b0.tar.bz2
trackermap-web-41e50383671843823a9c41d11b02a8cd9165e0b0.zip
Move some buttons to map
Diffstat (limited to 'web/app/view/Map.js')
-rw-r--r--web/app/view/Map.js45
1 files changed, 45 insertions, 0 deletions
diff --git a/web/app/view/Map.js b/web/app/view/Map.js
index ca5e39da..c5b6210c 100644
--- a/web/app/view/Map.js
+++ b/web/app/view/Map.js
@@ -26,6 +26,51 @@ Ext.define('Traccar.view.Map', {
controller: 'map',
title: Strings.mapTitle,
+ tbar: {
+ items: [{
+ xtype: 'tbtext',
+ html: Strings.mapTitle,
+ baseCls: 'x-panel-header-title-default'
+ }, {
+ xtype: 'tbfill'
+ }, {
+ xtype: 'button',
+ tooltipType: 'title',
+ handler: 'showGeofences',
+ reference: 'showGeofencesButton',
+ glyph: 'xf21d@FontAwesome',
+ enableToggle: true,
+ pressed: true,
+ tooltip: Strings.sharedGeofences
+ }, {
+ xtype: 'button',
+ tooltipType: 'title',
+ handler: 'showLiveRoutes',
+ reference: 'showLiveRoutes',
+ glyph: 'xf1b0@FontAwesome',
+ enableToggle: true,
+ tooltip: Strings.mapLiveRoutes
+ }, {
+ id: 'muteButton',
+ glyph: 'xf1f7@FontAwesome',
+ tooltip: Strings.sharedMute,
+ tooltipType: 'title',
+ pressed : true,
+ enableToggle: true,
+ listeners: {
+ toggle: function (button, pressed) {
+ if (pressed) {
+ button.setGlyph('xf1f7@FontAwesome');
+ } else {
+ button.setGlyph('xf0a2@FontAwesome');
+ }
+ },
+ scope: this
+ }
+ }, {
+ xtype: 'settingsMenu'
+ }]
+ },
getLatestSource: function () {
return this.latestSource;