Allow printing only if not visitor
这个提交包含在:
父节点
67b8bf40ec
当前提交
82742f328b
共有 1 个文件被更改,包括 9 次插入 和 7 次删除
|
|
@ -90,13 +90,15 @@ function plot(visitor, grid_two, grid_four, grid_six, grid_two_confirmed, grid_f
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
var printer = L.easyPrint({
|
if (visitor != true) {
|
||||||
tileLayer: layer,
|
var printer = L.easyPrint({
|
||||||
sizeModes: ['Current'],
|
tileLayer: layer,
|
||||||
filename: 'myMap',
|
sizeModes: ['Current'],
|
||||||
exportOnly: true,
|
filename: 'myMap',
|
||||||
hideControlContainer: true
|
exportOnly: true,
|
||||||
}).addTo(map);
|
hideControlContainer: true
|
||||||
|
}).addTo(map);
|
||||||
|
}
|
||||||
|
|
||||||
/*Legend specific*/
|
/*Legend specific*/
|
||||||
var legend = L.control({ position: "topright" });
|
var legend = L.control({ position: "topright" });
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用