aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-10-21 14:46:05 +0400
committerAnton Tananaev <anton.tananaev@gmail.com>2018-10-21 14:46:05 +0400
commit49b8e313bb70fd93ab15c4c316f98ce9bfe7aea5 (patch)
tree564e2cd27648b09b46c07923e65b330294b63199 /web/app/view
parentb5341a6f7b340b3fd0d82470ca14962f17f80792 (diff)
downloadtrackermap-web-49b8e313bb70fd93ab15c4c316f98ce9bfe7aea5.tar.gz
trackermap-web-49b8e313bb70fd93ab15c4c316f98ce9bfe7aea5.tar.bz2
trackermap-web-49b8e313bb70fd93ab15c4c316f98ce9bfe7aea5.zip
Un-escape custom map URL link
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/map/BaseMap.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/app/view/map/BaseMap.js b/web/app/view/map/BaseMap.js
index 07e391ff..42b4bc17 100644
--- a/web/app/view/map/BaseMap.js
+++ b/web/app/view/map/BaseMap.js
@@ -41,7 +41,8 @@ Ext.define('Traccar.view.map.BaseMap', {
case 'custom':
layer = new ol.layer.Tile({
source: new ol.source.XYZ({
- url: server.get('mapUrl'),
+ url: new DOMParser()
+ .parseFromString(server.get('mapUrl'), 'text/html').documentElement.textContent,
attributions: ''
})
});