Merge pull request #748 from Binnette/remove-protocol-from-iframe-code

Remove protocol from iframe src url
This commit is contained in:
Binnette 2020-02-21 22:16:12 +01:00 committed by GitHub
commit 89ba015746
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1033,7 +1033,7 @@ L.U.IframeExporter = L.Evented.extend({
initialize: function (map) {
this.map = map;
this.baseUrl = window.location.protocol + '//' + window.location.host + window.location.pathname;
this.baseUrl = '//' + window.location.host + window.location.pathname;
// Use map default, not generic default
this.queryString.onLoadPanel = this.map.options.onLoadPanel;
},