-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathindex.html
8118 lines (7647 loc) · 571 KB
/
index.html
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Azgaar的奇幻地图生成器</title>
<meta name="application-name" content="Azgaar's Fantasy Map Generator" />
<meta name="author" content="Azgaar" />
<meta
name="description"
content="汉化版,免费的网络应用程序,帮助幻想作家,游戏大师和制图师创建和编辑幻想地图"
/>
<meta property="og:url" content="https://8desk.top" />
<meta property="og:title" content="Azgaar's Fantasy Map Generator(个人汉化)" />
<meta
property="og:description"
content="免费的网络应用程序,帮助幻想作家,游戏大师和制图师创建和编辑幻想地图"
/>
<meta property="og:image" content="images/preview.png" />
<link rel="icon" type="image/png" href="images/icons/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="images/icons/favicon-16x16.png" sizes="16x16" />
<link rel="apple-touch-icon" href="images/icons/maskable_icon_x192.png" />
<link rel="canonical" href="https://8desk.top/" />
<link rel="manifest" href="manifest.webmanifest" />
<!--使用中文字体美化尝试-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC&display=swap" rel="stylesheet">
<!--结束-->
<script defer src="https://sakura.1inn.top/script.js" data-website-id="279a18ba-42d8-487c-84ee-162e139e209b"></script>
<!-- inline css for loading screen -->
<style type="text/css">
body {
margin: 0;
top: 0 !important;
font-size: 10px;
overflow: hidden;
}
#map {
position: absolute;
}
#loading > * {
pointer-events: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
#loading > #loading-rose > use {
fill: none;
stroke: black;
opacity: 0.7;
transform-origin: center;
animation: 20s linear 0s infinite spin;
}
#loading > #loading-typography {
opacity: 1;
font-size: 11px;
color: #fff5da;
text-align: center;
text-shadow: 0px 1px 4px #4c3a35;
width: 80vw;
max-width: 540px;
}
@media screen and (max-width: 600px) {
#loading > #loading-typography {
font-size: 8px;
}
}
#titleName {
text-align: left;
font-size: 3em;
}
#title {
font-size: 7em;
}
#versionText {
text-align: right;
font-size: 2em;
}
#loading-text {
font-size: 2em;
margin: 0.2em;
}
#loading-text > span {
font-size: 1.3em;
padding-left: 1px;
line-height: 0px;
}
#loading-text > span,
#mapOverlay > span {
animation: 3s infinite both blink;
}
#loading-text span:nth-child(2),
#mapOverlay > span:nth-child(2) {
animation-delay: 1s;
}
#loading-text span:nth-child(3),
#mapOverlay > span:nth-child(3) {
animation-delay: 2s;
}
@keyframes blink {
0% {
opacity: 0;
}
20% {
opacity: 1;
}
100% {
opacity: 0.1;
}
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(359deg);
}
}
</style>
<link rel="preload" href="index.css?v=1.106.3" as="style" onload="this.onload=null; this.rel='stylesheet'" />
<link rel="preload" href="icons.css" as="style" onload="this.onload=null; this.rel='stylesheet'" />
<link
rel="preload"
href="libs/jquery-ui.css?v=1.106.5"
as="style"
onload="this.onload=null; this.rel='stylesheet'"
/>
</head>
<body>
<svg
id="map"
width="100%"
height="100%"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
>
<defs>
<g id="filters">
<filter id="blurFilter" name="Blur 0.2" x="-1" y="-1" width="100" height="100">
<feGaussianBlur in="SourceGraphic" stdDeviation="0.2" />
</filter>
<filter id="blur1" name="Blur 1" x="-1" y="-1" width="100" height="100">
<feGaussianBlur in="SourceGraphic" stdDeviation="1" />
</filter>
<filter id="blur3" name="Blur 3" x="-1" y="-1" width="100" height="100">
<feGaussianBlur in="SourceGraphic" stdDeviation="3" />
</filter>
<filter id="blur5" name="Blur 5" x="-1" y="-1" width="100" height="100">
<feGaussianBlur in="SourceGraphic" stdDeviation="5" />
</filter>
<filter id="blur7" name="Blur 7" x="-1" y="-1" width="100" height="100">
<feGaussianBlur in="SourceGraphic" stdDeviation="7" />
</filter>
<filter id="blur10" name="Blur 10" x="-1" y="-1" width="100" height="100">
<feGaussianBlur in="SourceGraphic" stdDeviation="10" />
</filter>
<filter id="splotch" name="Splotch">
<feTurbulence type="fractalNoise" baseFrequency=".01" numOctaves="4" />
<feColorMatrix values="0 0 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 -0.9 1.2" result="texture" />
<feComposite in="SourceGraphic" in2="texture" operator="in" />
</filter>
<filter id="bluredSplotch" name="Blurred Splotch">
<feTurbulence type="fractalNoise" baseFrequency=".01" numOctaves="4" />
<feColorMatrix values="0 0 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 -0.9 1.2" result="texture" />
<feComposite in="SourceGraphic" in2="texture" operator="in" />
<feGaussianBlur stdDeviation="4" />
</filter>
<filter id="dropShadow" name="Shadow 2">
<feGaussianBlur in="SourceAlpha" stdDeviation="2" />
<feOffset dx="1" dy="2" />
<feMerge>
<feMergeNode />
<feMergeNode in="SourceGraphic" />
</feMerge>
</filter>
<filter id="dropShadow01" name="Shadow 0.1">
<feGaussianBlur in="SourceAlpha" stdDeviation=".1" />
<feOffset dx=".2" dy=".3" />
<feMerge>
<feMergeNode />
<feMergeNode in="SourceGraphic" />
</feMerge>
</filter>
<filter id="dropShadow05" name="Shadow 0.5">
<feGaussianBlur in="SourceAlpha" stdDeviation=".5" />
<feOffset dx=".5" dy=".7" />
<feMerge>
<feMergeNode />
<feMergeNode in="SourceGraphic" />
</feMerge>
</filter>
<filter id="outline" name="Outline">
<feGaussianBlur in="SourceAlpha" stdDeviation="1" />
<feMerge>
<feMergeNode />
<feMergeNode in="SourceGraphic" />
</feMerge>
</filter>
<filter id="pencil" name="Pencil">
<feTurbulence baseFrequency="0.03" numOctaves="6" type="fractalNoise" />
<feDisplacementMap scale="3" in="SourceGraphic" xChannelSelector="R" yChannelSelector="G" />
</filter>
<filter id="turbulence" name="Turbulence">
<feTurbulence baseFrequency="0.1" numOctaves="3" type="fractalNoise" />
<feDisplacementMap scale="10" in="SourceGraphic" xChannelSelector="R" yChannelSelector="G" />
</filter>
<filter
id="paper"
name="Paper"
x="-20%"
y="-20%"
width="140%"
height="140%"
filterUnits="objectBoundingBox"
primitiveUnits="userSpaceOnUse"
color-interpolation-filters="sRGB"
>
<feGaussianBlur
stdDeviation="1 1"
x="0%"
y="0%"
width="100%"
height="100%"
in="SourceGraphic"
edgeMode="none"
result="blur"
/>
<feTurbulence
type="fractalNoise"
baseFrequency="0.05 0.05"
numOctaves="4"
seed="1"
stitchTiles="stitch"
result="turbulence"
/>
<feDiffuseLighting
surfaceScale="2"
diffuseConstant="1"
lighting-color="#707070"
in="turbulence"
result="diffuseLighting"
>
<feDistantLight azimuth="45" elevation="20" />
</feDiffuseLighting>
<feComposite in="diffuseLighting" in2="blur" operator="lighter" result="composite" />
<feComposite
in="composite"
in2="SourceGraphic"
operator="in"
x="0%"
y="0%"
width="100%"
height="100%"
result="composite1"
/>
</filter>
<filter
id="crumpled"
name="Crumpled"
x="-20%"
y="-20%"
width="140%"
height="140%"
filterUnits="objectBoundingBox"
primitiveUnits="userSpaceOnUse"
color-interpolation-filters="sRGB"
>
<feGaussianBlur
stdDeviation="2 2"
x="0%"
y="0%"
width="100%"
height="100%"
in="SourceGraphic"
edgeMode="none"
result="blur"
/>
<feTurbulence
type="turbulence"
baseFrequency="0.05 0.05"
numOctaves="4"
seed="1"
stitchTiles="stitch"
result="turbulence"
/>
<feDiffuseLighting
surfaceScale="2"
diffuseConstant="1"
lighting-color="#828282"
in="turbulence"
result="diffuseLighting"
>
<feDistantLight azimuth="320" elevation="10" />
</feDiffuseLighting>
<feComposite in="diffuseLighting" in2="blur" operator="lighter" result="composite" />
<feComposite
in="composite"
in2="SourceGraphic"
operator="in"
x="0%"
y="0%"
width="100%"
height="100%"
result="composite1"
/>
</filter>
<filter id="filter-grayscale" name="Grayscale">
<feColorMatrix
values="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"
/>
</filter>
<filter id="filter-sepia" name="Sepia">
<feColorMatrix values="0.393 0.769 0.189 0 0 0.349 0.686 0.168 0 0 0.272 0.534 0.131 0 0 0 0 0 1 0" />
</filter>
<filter id="filter-dingy" name="Dingy">
<feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0.3 0.3 0 0 0 0 0 1 0"></feColorMatrix>
</filter>
<filter id="filter-tint" name="Tint">
<feColorMatrix values="1.1 0 0 0 0 0 1.1 0 0 0 0 0 0.9 0 0 0 0 0 1 0"></feColorMatrix>
</filter>
</g>
<g id="deftemp">
<g id="featurePaths"></g>
<g id="textPaths"></g>
<g id="statePaths"></g>
<g id="defs-emblems"></g>
<mask id="land"></mask>
<mask id="water">
<rect x="0" y="0" width="100%" height="100%" fill="white" />
</mask>
<mask id="fog" style="stroke-width: 10; stroke: black; stroke-linejoin: round; stroke-opacity: 0.1">
<rect x="0" y="0" width="100%" height="100%" fill="white" stroke="none" />
</mask>
</g>
<pattern id="oceanic" width="100" height="100" patternUnits="userSpaceOnUse">
<image id="oceanicPattern" href="./images/pattern1.png" opacity="0.2"></image>
</pattern>
<mask id="vignette-mask">
<rect x="0" y="0" width="100%" height="100%" fill="white"></rect>
<rect id="vignette-rect" fill="black"></rect>
</mask>
</defs>
<g id="viewbox"></g>
<g id="scaleBar">
<rect id="scaleBarBack"></rect>
</g>
<g id="vignette" mask="url(#vignette-mask)">
<rect x="0" y="0" width="100%" height="100%" />
</g>
</svg>
<div id="loading">
<svg width="100%" height="100%">
<rect x="-1%" y="-1%" width="102%" height="102%" fill="#466eab" />
<rect x="-1%" y="-1%" width="102%" height="102%" fill="url(#oceanic)" />
</svg>
<svg id="loading-rose" width="100%" height="100%" viewBox="0 0 700 700">
<use href="#defs-compass-rose" x="50%" y="50%" />
</svg>
<div id="loading-typography">
<div id="titleName">Azgaar的</div>
<div id="title">幻想地图生成器</div>
<div id="versionText"> </div>
<p id="loading-text">汉化版载入中<span>.</span><span>.</span><span>.</span></p>
超时请访问hk.8desk.top
</div>
</div>
<div id="optionsContainer" style="opacity: 0">
<div id="collapsible">
<button
id="optionsTrigger"
data-tip="显示菜单"
data-shortcut="Tab"
class="options glow"
onclick="showOptions(event)"
>
►
</button>
<button
id="regenerate"
data-tip="生成新的地图"
data-shortcut="F2"
onclick="regeneratePrompt()"
class="options"
style="display: none"
>
新地图!
</button>
</div>
<div id="options" style="display: none">
<div class="drag-trigger" data-tip="拖动可移动菜单"></div>
<div class="tab">
<button
id="optionsHide"
data-tip="隐藏菜单"
data-shortcut="Tab or Esc"
class="options"
onclick="hideOptions(event)"
>
◄
</button>
<button id="layersTab" data-tip="更改地图图层" class="options active">图层</button>
<button id="styleTab" data-tip="打开样式编辑器" class="options">样式</button>
<button id="optionsTab" data-tip="更改 UI 和生成" class="options">选项</button>
<button id="toolsTab" data-tip="打开工具菜单" class="options">工具</button>
<button id="aboutTab" data-tip="点击查看生成器信息" class="options">关于</button>
</div>
<div id="layersContent" class="tabcontent" style="display: block">
<p data-tip="选择一个地图图层预设" style="display: inline-block">图层预设:</p>
<select
data-tip="选择一个地图图层预设"
id="layersPreset"
onchange="handleLayersPresetChange(this.value)"
style="width: 45%"
>
<option value="political" selected>行政区域图</option>
<option value="cultural">文化地图</option>
<option value="religions">宗教地图</option>
<option value="provinces">省份地图</option>
<option value="biomes">生物群落图</option>
<option value="heightmap">高程图</option>
<option value="physical">物理地图</option>
<option value="poi">名胜古迹</option>
<option value="military">军事地图</option>
<option value="emblems">徽标</option>
<option value="landmass">纯大陆地</option>
<option hidden value="custom">自定义(未保存)</option>
</select>
<button
id="savePresetButton"
data-tip="将显示的图层保存为新的预置"
class="icon-plus sideButton"
style="display: none"
onclick="savePreset()"
></button>
<button
id="removePresetButton"
data-tip="点击此处可删除当前自定义预置"
class="icon-minus sideButton"
style="display: none"
onclick="removePreset()"
></button>
<p>显示图层和图层顺序:</p>
<ul
data-tip="点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
id="mapLayers"
>
<li
id="toggleTexture"
data-tip="材质图:点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="X"
onclick="toggleTexture(event)"
>
纹理(<u>x</u>)
</li>
<li
id="toggleHeight"
data-tip="高程图:点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="H"
onclick="toggleHeight(event)"
>
高程图(<u>h</u>)
</li>
<li
id="toggleBiomes"
data-tip="生物群:点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="B"
onclick="toggleBiomes(event)"
>
生物群(<u>x</u>)
</li>
<li
id="toggleCells"
data-tip="单元格:点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="E"
onclick="toggleCells(event)"
>
单元格(<u>e</u>)
</li>
<li
id="toggleGrid"
data-tip="网格:点击切换,拖动可升高或降低。按住Ctrl键并点击以编辑图层样式,然后选择“类型”"
data-shortcut="G"
onclick="toggleGrid(event)"
>
网格(<u>g</u>)
</li>
<li
id="toggleCoordinates"
data-tip="坐标:点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="O"
onclick="toggleCoordinates(event)"
>
坐标(<u>o</u>)
</li>
<li
id="toggleCompass"
data-tip="风向图:点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="W"
onclick="toggleCompass(event)"
>
风玫瑰图(<u>w</u>)
</li>
<li
id="toggleRivers"
data-tip="河流:点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="V"
onclick="toggleRivers(event)"
>
河流(<u>v</u>)
</li>
<li
id="toggleRelief"
data-tip="地貌和生物群落图标:点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="F"
onclick="toggleRelief(event)"
>
地形符号(<u>f</u>)
</li>
<li
id="toggleReligions"
data-tip="宗教:点击可切换,拖动可升高或降低图层。按住Ctrl键并点击可编辑图层样式"
data-shortcut="R"
onclick="toggleReligions(event)"
>
宗教(<u>r</u>)
</li>
<li
id="toggleCultures"
data-tip="文化: 点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="C"
onclick="toggleCultures(event)"
>
文化(<u>c</u>)
</li>
<li
id="toggleStates"
data-tip="国家: 点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="S"
onclick="toggleStates(event)"
>
国家(<u>s</u>)
</li>
<li
id="toggleProvinces"
data-tip="省: 点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="P"
onclick="toggleProvinces(event)"
>
省份(<u>p</u>)
</li>
<li
id="toggleZones"
data-tip="区域: 点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="Z"
onclick="toggleZones(event)"
>
区域(<u>z</u>)
</li>
<li
id="toggleBorders"
data-tip="国界: 点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="D"
onclick="toggleBorders(event)"
>
国界(<u>d</u>)
</li>
<li
id="toggleRoutes"
data-tip="路线: 点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="U"
onclick="toggleRoutes(event)"
>
路线(<u>u</u>)
</li>
<li
id="toggleTemperature"
data-tip="温度图: 点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="T"
onclick="toggleTemperature(event)"
>
温度图(<u>t</u>)
</li>
<li
id="togglePopulation"
data-tip="人口图: 点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="N"
onclick="togglePopulation(event)"
>
人口(<u>n</u>)
</li>
<li
id="toggleIce"
data-tip="冰山和冰川: 点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="J"
onclick="toggleIce(event)"
>
冰(<u>J</u>)
</li>
<li
id="togglePrecipitation"
data-tip="降水图: 点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="A"
onclick="togglePrecipitation(event)"
>
降水(<u>a</u>)
</li>
<li
id="toggleEmblems"
data-tip="徽标: 点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="Y"
onclick="toggleEmblems(event)"
>
徽标(<u>Y</u>)
</li>
<li
id="toggleLabels"
data-tip="标签: 地球仪。按住Ctrl键并点击可编辑图层样式"
data-shortcut="L"
onclick="toggleLabels(event)"
>
标签(<u>l</u>)
</li>
<li
id="toggleBurgIcons"
data-tip="城市图标: 点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="I"
onclick="toggleBurgIcons(event)"
>
图标(<u>i</u>)
</li>
<li
id="toggleMilitary"
data-tip="军事力量: 点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="M"
onclick="toggleMilitary(event)"
>
军事(<u>m</u>)
</li>
<li
id="toggleMarkers"
data-tip="标记: 点击切换显示,直接拖动按钮改变按钮顺序。按住Ctrl键并点击可编辑图层样式"
data-shortcut="K"
onclick="toggleMarkers(event)"
>
标记(<u>k</u>)
</li>
<li
id="toggleRulers"
data-tip="标尺:点击切换,拖动移动,点击标签删除。按住Ctrl键并点击可编辑图层样式"
data-shortcut="= (equal sign)"
onclick="toggleRulers(event)"
>
标尺(<u>=</u>)
</li>
<li
id="toggleScaleBar"
data-tip="比例尺:点击切换。按住Ctrl键并点击可编辑样式"
data-shortcut="/ (slash sign)"
onclick="toggleScaleBar(event)"
class="solid"
>
比例尺(<u>/</u>)
</li>
<li
id="toggleVignette"
data-tip="晕影(边框渐变):点击切换。按 Ctrl + 点击编辑样式"
data-shortcut="[ (left square bracket)"
onclick="toggleVignette(event)"
class="solid"
>
晕影
</li>
</ul>
<div class="tip">点击切换图层可见,直接拖动按钮排序</div>
<div class="tip">Ctrl + 点击编辑图层样式</div>
<div id="viewMode" data-tip="设置显示模式">
<p>显示模式:</p>
<button data-tip="允许编辑地图的标准视图模式" id="viewStandard" class="pressed">
标准
</button>
<button
data-tip="3D 显示,展示高程图效果最好的模式。不可编辑"
id="viewMesh"
>
3D模式
</button>
<button data-tip="把地图置于球体上显示。不可编辑" id="viewGlobe">地球仪</button>
</div>
</div>
<div id="styleContent" class="tabcontent">
<p
data-tip="选择一个样式预设。如果字体改变,国家标签可能需要重新生成"
style="display: inline-block"
>
样式预设:
</p>
<select
data-tip="选择样式预设"
id="stylePreset"
onchange="requestStylePresetChange(this.value)"
style="width: 45%; text-transform: capitalize"
></select>
<button
id="addStyleButton"
data-tip="点击此处可将当前样式保存为新的预置"
class="icon-plus sideButton"
style="display: inline-block"
onclick="addStylePreset()"
></button>
<button
id="removeStyleButton"
data-tip="点击此处可删除当前自定义样式预设"
class="icon-minus sideButton"
style="display: none"
onclick="requestRemoveStylePreset()"
></button>
<p></p><p data-tip="选择一个元素来编辑其样式" style="display: inline-block">选择元素:</p>
<select
data-tip="选择一个元素来编辑其样式"
id="styleElementSelect"
style="width: 42%"
>
<option value="anchors">锚图标</option>
<option value="biomes">生物群系</option>
<option value="borders">边界</option>
<option value="burgIcons">城市图标</option>
<option value="cells">单元格</option>
<option value="coastline">海岸线</option>
<option value="coordinates">坐标</option>
<option value="cults">文化</option>
<option value="emblems">徽标</option>
<option value="fogging">雾</option>
<option value="gridOverlay">网格</option>
<option value="terrs">高程图</option>
<option value="ice">冰</option>
<option value="labels">标签</option>
<option value="lakes">湖</option>
<option value="landmass">大陆</option>
<option value="legend">图列</option>
<option value="markers">标记</option>
<option value="armies">军事</option>
<option value="ocean">大海</option>
<option value="population">人口</option>
<option value="prec">降水</option>
<option value="provs">省份</option>
<option value="terrain">地形符号</option>
<option value="relig">宗教</option>
<option value="rivers">河流</option>
<option value="routes">商路</option>
<option value="ruler">标尺</option>
<option value="scaleBar">比例尺</option>
<option value="regions" selected>国家</option>
<option value="temperature">温度</option>
<option value="texture">纹理</option>
<option value="vignette">晕影</option>
<option value="compass">风玫瑰图</option>
<option value="zones">区域</option>
</select>
<table id="styleElements">
<caption
id="styleIsOff"
data-tip="选定的图层不可见。请打开它查看样式更改效果"
>
确保当前元素图层可见!
</caption>
<tbody id="styleGroup">
<tr data-tip="选择元素组">
<td><b>组</b></td>
<td>
<select id="styleGroupSelect"></select>
</td>
</tr>
</tbody>
<tbody id="styleHeightmap">
<tr id="styleHeightmapRenderOceanOption" data-tip="选中以渲染海洋高程图">
<td colspan="2">
<input id="styleHeightmapRenderOcean" class="checkbox" type="checkbox" />
<label for="styleHeightmapRenderOcean" class="checkbox-label">渲染海洋高程图</label>
</td>
</tr>
<tr data-tip="阶梯率。设置为0(切换关闭) ,以提高性能">
<td>阶梯地</td>
<td>
<slider-input id="styleHeightmapTerracing" min="0" max="20" step="1"></slider-input>
</td>
</tr>
<tr data-tip="减少层数,提高性能">
<td>层减少</td>
<td>
<slider-input id="styleHeightmapSkip" min="0" max="10" step="1"></slider-input>
</td>
</tr>
<tr data-tip="线条简化率。提高以略微提升性能。">
<td>线简化</td>
<td>
<slider-input id="styleHeightmapSimplification" min="0" max="10" step="1"></slider-input>
</td>
</tr>
<tr data-tip="选择直线插值类型">
<td>线条样式</td>
<td>
<select id="styleHeightmapCurve">
<option value="curveBasisClosed" selected>弯曲</option>
<option value="curveLinear">线性</option>
<option value="curveStep">矩形</option>
</select>
</td>
</tr>
<tr data-tip="为元素选择配色方案">
<td>配色方案</td>
<td>
<select id="styleHeightmapScheme" style="width: 86%"></select>
<button
id="openCreateHeightmapSchemeButton"
data-tip="点击添加自定义高程图配色方案"
data-stops="#ffffff,#EEEECC,#D2B48C,#008000,#008080"
class="icon-plus sideButton"
></button>
</td>
</tr>
</tbody>
<tbody id="styleOpacity" style="display: none">
<tr data-tip="设置不透明度。0: 透明,1:完全不透明">
<td>透明度</td>
<td>
<slider-input id="styleOpacityInput" min="0" max="1" step="0.01"></slider-input>
</td>
</tr>
</tbody>
<tbody id="styleLegend">
<tr data-tip="在一列中设置最大项数">
<td>列项目</td>
<td>
<slider-input id="styleLegendColItems" min="1" max="30" step="1"></slider-input>
</td>
</tr>
<tr data-tip="设置背景颜色">
<td>背景</td>
<td>
<input id="styleLegendBack" type="color" value="#ffffff" />
<output id="styleLegendBackOutput">#ffffff</output>
</td>
</tr>
<tr data-tip="设置背景透明度">
<td>透明度</td>
<td>
<slider-input id="styleLegendOpacity" min="0" max="1" step=".01"></slider-input>
</td>
</tr>
</tbody>
<tbody id="stylePopulation">
<tr data-tip="为农村人口设置条形颜色">
<td>乡村颜色</td>
<td>
<input id="stylePopulationRuralStrokeInput" type="color" value="#0000ff" />
<output id="stylePopulationRuralStrokeOutput">#0000ff</output>
</td>
</tr>
<tr data-tip="为城市人口设置条形颜色">
<td>城市色彩</td>
<td>
<input id="stylePopulationUrbanStrokeInput" type="color" value="#ff0000" />
<output id="stylePopulationUrbanStrokeOutput">#ff0000</output>
</td>
</tr>
</tbody>
<tbody id="styleTexture">
<tr data-tip="选择图像的纹理。大纹理会严重影响性能">
<td>图像</td>
<td>
<select id="styleTextureInput" style="width: 86%">
<option value="">无纹理</option>
<option value="./images/textures/folded-paper-big.jpg">Folded paper big</option>
<option value="./images/textures/folded-paper-small.jpg">Folded paper small</option>
<option value="./images/textures/gray-paper.jpg">Gray paper</option>
<option value="./images/textures/soiled-paper.jpg">Soiled paper horizontal</option>
<option value="./images/textures/soiled-paper-vertical.jpg">Soided paper vertical</option>
<option value="./images/textures/plaster.jpg">Plaster</option>
<option value="./images/textures/ocean.jpg">Ocean</option>
<option value="./images/textures/antique-small.jpg">Antique small</option>
<option value="./images/textures/antique-big.jpg">Antique big</option>
<option value="./images/textures/pergamena-small.jpg">Pergamena small</option>
<option value="./images/textures/marble-big.jpg" selected>Marble big</option>
<option value="./images/textures/marble-small.jpg">Marble small</option>
<option value="./images/textures/marble-blue-small.jpg">Marble Blue</option>
<option value="./images/textures/marble-blue-big.jpg">Marble Blue big</option>
<option value="./images/textures/stone-small.jpg">Stone small</option>
<option value="./images/textures/stone-big.jpg">Stone big</option>
<option value="./images/textures/timbercut-small.jpg">Timber Cut small</option>
<option value="./images/textures/timbercut-big.jpg">Timber Cut big</option>
<option value="./images/textures/mars-small.jpg">Mars small</option>
<option value="./images/textures/mars-big.jpg">Mars big</option>
<option value="./images/textures/mercury-small.jpg">Mercury small</option>
<option value="./images/textures/mercury-big.jpg">Mercury big</option>
<option value="./images/textures/mauritania-small.jpg">Mauritania small</option>
<option value="./images/textures/iran-small.jpg">Iran small</option>
<option value="./images/textures/spain-small.jpg">Spain small</option>
</select>
<button
data-tip="点击并提供要设置为纹理的图像的URL"
class="icon-plus sideButton"
onclick="textureProvideURL()"
></button>
</td>
</tr>
<tr data-tip="按轴变化纹理">
<td>轴变化</td>
<td>
<input id="styleTextureShiftX" type="number" value="0" data-tip="以像素为单位按x轴移动纹理" />
<input id="styleTextureShiftY" type="number" value="0" data-tip="以像素为单位按y轴移动纹理" />
</td>
</tr>
</tbody>
<tbody id="styleVignette">
<tr data-tip="选择预设晕影">
<td>预设</td>
<td>
<select id="styleVignettePreset"></select>
</td>
</tr>
<tr data-tip=晕影矩形位置(以百分比表示)">
<td>位置</td>
<td style="display: flex; flex-direction: column; gap: 2px">
<div>
<span>x </span>
<input id="styleVignetteX" type="number" min="0" max="100" step="0.1" style="width: 5em" />
<span>宽 </span>
<input id="styleVignetteWidth" type="number" min="0" max="100" step="0.1" style="width: 5em" />
</div>
<div>
<span>y </span>
<input id="styleVignetteY" type="number" min="0" max="100" step="0.1" style="width: 5em" />
<span>高 </span>
<input id="styleVignetteHeight" type="number" min="0" max="100" step="0.1" style="width: 5em" />
</div>
</td>
</tr>
<tr data-tip="设晕影的 X 和 Y 半径(以百分比为单位)">
<td>半径</td>
<td>
<span>x </span>
<input id="styleVignetteRx" type="number" min="0" max="50" style="width: 5em" />
<span>y </span>
<input id="styleVignetteRy" type="number" min="0" max="50" style="width: 5em" />
</td>
</tr>
<tr data-tip="设置晕影模糊扩散(单位像素)">
<td>模糊</td>
<td>
<slider-input id="styleVignetteBlur" min="0" max="400" step="1"></slider-input>
</td>
</tr>
</tbody>
<tbody id="styleOcean">
<tr data-tip="选择海洋图案">
<td>图案</td>