From 8429665c4ba061897e5e225792a2ab7350583c40 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 20 Jun 2017 11:08:16 +0500 Subject: Implement zoom map on select --- web/app/store/ServerAttributes.js | 7 +++++++ web/app/store/UserAttributes.js | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'web/app/store') diff --git a/web/app/store/ServerAttributes.js b/web/app/store/ServerAttributes.js index 64bac240..05002f16 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 da05d5c8..91a54d04 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 }] }); -- cgit v1.2.3