aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-12 09:44:31 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-12 09:44:31 -0700
commit135d60e8308011f52e3ca03c3f69caa2d06aa082 (patch)
treeee1ba681085af70d2d9c19d164640bb306fd4f77
parent2179dd19dd0dbdded0b62d0d31ba1b3162ee145f (diff)
downloadtrackermap-web-135d60e8308011f52e3ca03c3f69caa2d06aa082.tar.gz
trackermap-web-135d60e8308011f52e3ca03c3f69caa2d06aa082.tar.bz2
trackermap-web-135d60e8308011f52e3ca03c3f69caa2d06aa082.zip
Add AutoNavi map
-rw-r--r--modern/src/map/core/useMapStyles.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/modern/src/map/core/useMapStyles.js b/modern/src/map/core/useMapStyles.js
index 6dc585b7..a172744b 100644
--- a/modern/src/map/core/useMapStyles.js
+++ b/modern/src/map/core/useMapStyles.js
@@ -165,6 +165,14 @@ export default () => {
attribute: 'hereKey',
},
{
+ id: 'autoNavi',
+ title: t('mapAutoNavi'),
+ style: styleCustom(
+ [1, 2, 3, 4].map((i) => `https://webrd0${i}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}`),
+ ),
+ available: true,
+ },
+ {
id: 'custom',
title: t('mapCustom'),
style: styleCustom(customMapUrl),