Skip to content

Commit

Permalink
Un-escape custom map URL link
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Oct 21, 2018
1 parent b5341a6 commit 49b8e31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/app/view/map/BaseMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''
})
});
Expand Down

0 comments on commit 49b8e31

Please sign in to comment.