aboutsummaryrefslogtreecommitdiff
path: root/web/app/store
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-06-20 11:08:16 +0500
committerAbyss777 <abyss@fox5.ru>2017-06-20 11:08:16 +0500
commit8429665c4ba061897e5e225792a2ab7350583c40 (patch)
treeb88916492f09fa1d7c0b0625eb4def259faf5cc1 /web/app/store
parent5a6044faac45b377efabe363655ec21790bd955b (diff)
downloadetbsa-traccar-web-8429665c4ba061897e5e225792a2ab7350583c40.tar.gz
etbsa-traccar-web-8429665c4ba061897e5e225792a2ab7350583c40.tar.bz2
etbsa-traccar-web-8429665c4ba061897e5e225792a2ab7350583c40.zip
Implement zoom map on select
Diffstat (limited to 'web/app/store')
-rw-r--r--web/app/store/ServerAttributes.js7
-rw-r--r--web/app/store/UserAttributes.js7
2 files changed, 14 insertions, 0 deletions
diff --git a/web/app/store/ServerAttributes.js b/web/app/store/ServerAttributes.js
index 64bac24..05002f1 100644
--- a/web/app/store/ServerAttributes.js
+++ b/web/app/store/ServerAttributes.js
@@ -40,5 +40,12 @@ Ext.define('Traccar.store.ServerAttributes', {
name: Strings.attributeWebLiveRouteLength,
valueType: 'number',
allowDecimals: false
+ }, {
+ key: 'web.selectZoom',
+ name: Strings.attributeWebSelectZoom,
+ valueType: 'number',
+ allowDecimals: false,
+ minValue: Traccar.Style.mapDefaultZoom,
+ maxValue: Traccar.Style.mapMaxZoom
}]
});
diff --git a/web/app/store/UserAttributes.js b/web/app/store/UserAttributes.js
index da05d5c..91a54d0 100644
--- a/web/app/store/UserAttributes.js
+++ b/web/app/store/UserAttributes.js
@@ -72,5 +72,12 @@ Ext.define('Traccar.store.UserAttributes', {
name: Strings.attributeWebLiveRouteLength,
valueType: 'number',
allowDecimals: false
+ }, {
+ key: 'web.selectZoom',
+ name: Strings.attributeWebSelectZoom,
+ valueType: 'number',
+ allowDecimals: false,
+ minValue: Traccar.Style.mapDefaultZoom,
+ maxValue: Traccar.Style.mapMaxZoom
}]
});