From 09e1e536aea906ae62f2a361df07d4b4532e62c2 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 13 Jul 2022 07:22:42 -0700 Subject: Remove deprecated maps --- web/app/store/MapTypes.js | 6 ------ web/app/view/map/BaseMap.js | 18 ------------------ web/l10n/en.json | 2 -- 3 files changed, 26 deletions(-) (limited to 'web') diff --git a/web/app/store/MapTypes.js b/web/app/store/MapTypes.js index 01657565..f517045d 100644 --- a/web/app/store/MapTypes.js +++ b/web/app/store/MapTypes.js @@ -22,12 +22,6 @@ Ext.define('Traccar.store.MapTypes', { data: [{ key: 'locationIqStreets', name: Strings.mapLocationIqStreets - }, { - key: 'locationIqEarth', - name: Strings.mapLocationIqEarth - }, { - key: 'locationIqHybrid', - name: Strings.mapLocationIqHybrid }, { key: 'osm', name: Strings.mapOsm diff --git a/web/app/view/map/BaseMap.js b/web/app/view/map/BaseMap.js index c27a8d79..9192a53b 100644 --- a/web/app/view/map/BaseMap.js +++ b/web/app/view/map/BaseMap.js @@ -129,24 +129,6 @@ Ext.define('Traccar.view.map.BaseMap', { visible: type === 'osm', source: new ol.source.OSM({}) }), - new ol.layer.Tile({ - title: Strings.mapLocationIqHybrid, - type: 'base', - visible: type === 'locationIqHybrid', - source: new ol.source.XYZ({ - url: 'https://{a-c}-tiles.locationiq.com/v3/hybrid/r/{z}/{x}/{y}.jpg?key=' + locationIqKey, - attributions: '© LocationIQ' - }) - }), - new ol.layer.Tile({ - title: Strings.mapLocationIqEarth, - type: 'base', - visible: type === 'locationIqEarth', - source: new ol.source.XYZ({ - url: 'https://{a-c}-tiles.locationiq.com/v3/earth/r/{z}/{x}/{y}.jpg?key=' + locationIqKey, - attributions: '© LocationIQ' - }) - }), new ol.layer.Tile({ title: Strings.mapLocationIqStreets, type: 'base', diff --git a/web/l10n/en.json b/web/l10n/en.json index 616f6724..d846c479 100644 --- a/web/l10n/en.json +++ b/web/l10n/en.json @@ -298,8 +298,6 @@ "mapMapTilerHybrid": "MapTiler Hybrid", "mapMapTilerKey": "MapTiler API Key", "mapLocationIqStreets": "LocationIQ Streets", - "mapLocationIqEarth": "LocationIQ Earth", - "mapLocationIqHybrid": "LocationIQ Hybrid", "mapLocationIqKey": "LocationIQ Access Token", "mapTomTomBasic": "TomTom Basic", "mapTomTomFlow": "TomTom Traffic Flow", -- cgit v1.2.3