diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-10-31 13:15:42 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-10-31 13:15:42 -0700 |
commit | 1e2e8d9bea0560d3ea75b40ca5cd7ab0bb5f4afd (patch) | |
tree | 4de8c565e95842ce1ae9f70a96ffd7f430180b9a /web/app/view/map/GeofenceMap.js | |
parent | dac214c3ac6066a6f23cf92807da89cc1a86c105 (diff) | |
download | trackermap-web-1e2e8d9bea0560d3ea75b40ca5cd7ab0bb5f4afd.tar.gz trackermap-web-1e2e8d9bea0560d3ea75b40ca5cd7ab0bb5f4afd.tar.bz2 trackermap-web-1e2e8d9bea0560d3ea75b40ca5cd7ab0bb5f4afd.zip |
Import GPX file as geofence
Diffstat (limited to 'web/app/view/map/GeofenceMap.js')
-rw-r--r-- | web/app/view/map/GeofenceMap.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/web/app/view/map/GeofenceMap.js b/web/app/view/map/GeofenceMap.js index 8cef574b..18c33862 100644 --- a/web/app/view/map/GeofenceMap.js +++ b/web/app/view/map/GeofenceMap.js @@ -37,6 +37,26 @@ Ext.define('Traccar.view.map.GeofenceMap', { listeners: { select: 'onTypeSelect' } + }, '-', { + xtype: 'tbtext', + html: Strings.sharedImport + }, { + xtype: 'filefield', + name: 'file', + buttonConfig: { + glyph: 'xf093@FontAwesome', + text: '', + tooltip: Strings.sharedSelectFile, + tooltipType: 'title' + }, + listeners: { + change: 'onFileChange', + afterrender: function (fileField) { + fileField.fileInputEl.set({ + accept: '.gpx' + }); + } + } }, { xtype: 'tbfill' }, { |