Skip to content
9 changes: 8 additions & 1 deletion lib/js/echarts-leaflet/LeafletCoordSys.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,14 @@ function createLeafletCoordSystem(echarts, L) {
mapRoot.classList.add("ec-extension-leaflet");
root.appendChild(mapRoot);

leafletModel.__map = L.map(mapRoot, leafletModel.get("mapOptions"));
const userOptions = leafletModel.get("mapOptions") || {};
const defaultOption = {
worldCopyJump: true,
};
const mapOptions = Object.assign({}, defaultOption, userOptions);

leafletModel.__map = L.map(mapRoot, mapOptions);

const map = leafletModel.__map;
const tiles = leafletModel.get("tiles");
const baseLayers = {};
Expand Down