diff options
author | Abyss777 <abyss@fox5.ru> | 2016-09-05 14:27:30 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-09-05 14:27:30 +0500 |
commit | b7403aaadd130bf1496b97c07667842813d99550 (patch) | |
tree | 4a334be60e150b729fd8115e8227afb98cd8f8ff /web/app/view/UserDialog.js | |
parent | 6aca189651d8587b9178a38c1830a8cbd8ae0d46 (diff) | |
download | trackermap-server-b7403aaadd130bf1496b97c07667842813d99550.tar.gz trackermap-server-b7403aaadd130bf1496b97c07667842813d99550.tar.bz2 trackermap-server-b7403aaadd130bf1496b97c07667842813d99550.zip |
Implement retrieving map center from current map
Diffstat (limited to 'web/app/view/UserDialog.js')
-rw-r--r-- | web/app/view/UserDialog.js | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/web/app/view/UserDialog.js b/web/app/view/UserDialog.js index 07fc1431f..c6b732513 100644 --- a/web/app/view/UserDialog.js +++ b/web/app/view/UserDialog.js @@ -70,19 +70,28 @@ Ext.define('Traccar.view.UserDialog', { displayField: 'name', valueField: 'key' }, { - xtype: 'numberfield', - name: 'latitude', - fieldLabel: Strings.positionLatitude, - decimalPrecision: Traccar.Style.coordinatePrecision - }, { - xtype: 'numberfield', - name: 'longitude', - fieldLabel: Strings.positionLongitude, - decimalPrecision: Traccar.Style.coordinatePrecision - }, { - xtype: 'numberfield', - name: 'zoom', - fieldLabel: Strings.serverZoom + xtype: 'fieldset', + reference: 'mapCenter', + title: Strings.sharedMapCenter, + defaultType: 'numberfield', + items: [{ + name: 'latitude', + fieldLabel: Strings.positionLatitude, + decimalPrecision: Traccar.Style.coordinatePrecision + }, { + name: 'longitude', + fieldLabel: Strings.positionLongitude, + decimalPrecision: Traccar.Style.coordinatePrecision + }, { + name: 'zoom', + fieldLabel: Strings.serverZoom + }, { + xtype: 'button', + margin: Traccar.Style.inFormButtonMargin, + enableToggle: false, + text: Strings.sharedGetFromMap, + handler: 'getFromMap' + }] }, { xtype: 'checkboxfield', name: 'twelveHourFormat', |