Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions front.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ L.K.Map.addInitHook(function () {
maxZoom: this.options.maxZoom
};
title.innerHTML = 'Map compare';
TILELAYERS = TILELAYERS.concat(L.K.Config.project.compareUrls);
if (TILELAYERS.indexOf(L.K.Config.project.compareUrl) === -1) TILELAYERS.unshift([L.K.Config.project.compareUrl, 'Default']);
var tilelayer, otherMap,
init = function () {
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var patchConfig = function (e) {
e.options.compareUrl = e.project.mml.compareUrl || this.userConfig.compareUrl || 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
e.options.compareUrls = e.project.mml.compareUrls || this.userConfig.compareUrls || [];
};

exports.Plugin = function (config) {
Expand Down