-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.js
More file actions
31 lines (31 loc) · 944 Bytes
/
test.js
File metadata and controls
31 lines (31 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
'use strict';
// 详细参数配置请生成jsdoc文档查阅
const A0WallMap = require('./template/A0-vertical'); // 版式 vertical Horizontal
(async function () {
const A0 = new A0WallMap('A0VerticalDefault'); // 实例化主题
await A0.createMap('./assets/merge.png'); // 地图(必填)
await A0.createCompass('./assets/zbz.png'); // 指北针
await A0.createBorder(); // 边框
A0.createTiltle('地图模板标题'); // 标题(必填)
await A0.createLegend({
data: [{
icon: './assets/qiren.png',
txt: '图例',
}],
option: {
iconColumn: 1,
iconWidth: 176,
iconHight: 176,
iconFontSize: 105,
iconFontColor: '#221714',
},
}, {
boderColor: '#0A5179',
tuliFontSize: 146,
tuliFontColor: '#221815',
}); // 图例(必填)
A0.createZbdw(); // 主编单位
A0.createScale('1500'); // 比例尺(必填)
A0.createCbdw(); // 承编单位
A0.output();
})();