From 49b8e313bb70fd93ab15c4c316f98ce9bfe7aea5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 21 Oct 2018 14:46:05 +0400 Subject: Un-escape custom map URL link --- web/app/view/map/BaseMap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web/app') 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: '' }) }); -- cgit v1.2.3