aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map/GeofenceMap.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-10-31 13:15:42 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-10-31 13:15:42 -0700
commit1e2e8d9bea0560d3ea75b40ca5cd7ab0bb5f4afd (patch)
tree4de8c565e95842ce1ae9f70a96ffd7f430180b9a /web/app/view/map/GeofenceMap.js
parentdac214c3ac6066a6f23cf92807da89cc1a86c105 (diff)
downloadetbsa-traccar-web-1e2e8d9bea0560d3ea75b40ca5cd7ab0bb5f4afd.tar.gz
etbsa-traccar-web-1e2e8d9bea0560d3ea75b40ca5cd7ab0bb5f4afd.tar.bz2
etbsa-traccar-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.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/web/app/view/map/GeofenceMap.js b/web/app/view/map/GeofenceMap.js
index 8cef574..18c3386 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'
}, {