diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-13 07:22:42 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-13 07:22:42 -0700 |
commit | 09e1e536aea906ae62f2a361df07d4b4532e62c2 (patch) | |
tree | 102e01e32a0cf0184fe665b1d284b9c6598bb9b2 | |
parent | 229fa227311adb2e4bfdfcd509669264ad793e9c (diff) | |
download | trackermap-web-09e1e536aea906ae62f2a361df07d4b4532e62c2.tar.gz trackermap-web-09e1e536aea906ae62f2a361df07d4b4532e62c2.tar.bz2 trackermap-web-09e1e536aea906ae62f2a361df07d4b4532e62c2.zip |
Remove deprecated maps
-rw-r--r-- | modern/src/map/core/useMapStyles.js | 14 | ||||
-rw-r--r-- | web/app/store/MapTypes.js | 6 | ||||
-rw-r--r-- | web/app/view/map/BaseMap.js | 18 | ||||
-rw-r--r-- | web/l10n/en.json | 2 |
4 files changed, 0 insertions, 40 deletions
diff --git a/modern/src/map/core/useMapStyles.js b/modern/src/map/core/useMapStyles.js index 2e70922d..5e32c44d 100644 --- a/modern/src/map/core/useMapStyles.js +++ b/modern/src/map/core/useMapStyles.js @@ -39,20 +39,6 @@ export default () => { available: true, }, { - id: 'locationIqEarth', - title: t('mapLocationIqEarth'), - style: `https://tiles.locationiq.com/v3/earth/vector.json?key=${locationIqKey}`, - available: !!locationIqKey, - attribute: 'locationIqKey', - }, - { - id: 'locationIqHybrid', - title: t('mapLocationIqHybrid'), - style: `https://tiles.locationiq.com/v3/hybrid/vector.json?key=${locationIqKey}`, - available: !!locationIqKey, - attribute: 'locationIqKey', - }, - { id: 'osm', title: t('mapOsm'), style: styleCustom( 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 @@ -23,12 +23,6 @@ Ext.define('Traccar.store.MapTypes', { 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 @@ -130,24 +130,6 @@ Ext.define('Traccar.view.map.BaseMap', { 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: '© <a href="https://locationiq.com/">LocationIQ</a>' - }) - }), - 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: '© <a href="https://locationiq.com/">LocationIQ</a>' - }) - }), - new ol.layer.Tile({ title: Strings.mapLocationIqStreets, type: 'base', visible: type === 'locationIqStreets' || type === 'wikimedia' || !type, 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", |