-
-
Notifications
You must be signed in to change notification settings - Fork 676
/
index.html
8168 lines (7687 loc) · 575 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="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Azgaar's Fantasy Map Generator</title>
<meta name="application-name" content="Azgaar's Fantasy Map Generator" />
<meta name="author" content="Azgaar" />
<meta
name="description"
content="Free web app that helps fantasy writers, game masters, and cartographers create and edit fantasy maps"
/>
<meta property="og:url" content="https://azgaar.github.io/Fantasy-Map-Generator" />
<meta property="og:title" content="Azgaar's Fantasy Map Generator" />
<meta
property="og:description"
content="Free web app that helps fantasy writers, game masters, and cartographers create and edit fantasy maps"
/>
<meta property="og:image" content="images/preview.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta property="twitter:domain" content="azgaar.github.io" />
<meta property="twitter:url" content="https://azgaar.github.io/Fantasy-Map-Generator/" />
<meta name="twitter:title" content="Azgaar's Fantasy Map Generator" />
<meta
name="twitter:description"
content="Free web app that helps fantasy writers, game masters, and cartographers create and edit fantasy maps"
/>
<meta name="twitter:image" content="images/preview.png" />
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VJL3J26W7R"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-VJL3J26W7R");
</script>
<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://azgaar.github.io/Fantasy-Map-Generator/" />
<link rel="manifest" href="manifest.webmanifest" />
<!-- 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's</div>
<div id="title">Fantasy Map Generator</div>
<div id="versionText"> </div>
<p id="loading-text">LOADING<span>.</span><span>.</span><span>.</span></p>
</div>
</div>
<div id="optionsContainer" style="opacity: 0">
<div id="collapsible">
<button
id="optionsTrigger"
data-tip="Click to show the Menu"
data-shortcut="Tab"
class="options glow"
onclick="showOptions(event)"
>
►
</button>
<button
id="regenerate"
data-tip="Click to generate a new map"
data-shortcut="F2"
onclick="regeneratePrompt()"
class="options"
style="display: none"
>
New Map!
</button>
</div>
<div id="options" style="display: none">
<div class="drag-trigger" data-tip="Drag to move the Menu"></div>
<div class="tab">
<button
id="optionsHide"
data-tip="Click to hide the Menu"
data-shortcut="Tab or Esc"
class="options"
onclick="hideOptions(event)"
>
◄
</button>
<button id="layersTab" data-tip="Click to change map layers" class="options active">Layers</button>
<button id="styleTab" data-tip="Click to open style editor" class="options">Style</button>
<button id="optionsTab" data-tip="Click to change generation and UI options" class="options">Options</button>
<button id="toolsTab" data-tip="Click to open tools menu" class="options">Tools</button>
<button id="aboutTab" data-tip="Click to see Generator info" class="options">About</button>
</div>
<div id="layersContent" class="tabcontent" style="display: block">
<p data-tip="Select a map layers preset" style="display: inline-block">Layers preset:</p>
<select
data-tip="Select a map layers preset"
id="layersPreset"
onchange="handleLayersPresetChange(this.value)"
style="width: 45%"
>
<option value="political" selected>Political map</option>
<option value="cultural">Cultural map</option>
<option value="religions">Religions map</option>
<option value="provinces">Provinces map</option>
<option value="biomes">Biomes map</option>
<option value="heightmap">Heightmap</option>
<option value="physical">Physical map</option>
<option value="poi">Places of interest</option>
<option value="military">Military map</option>
<option value="emblems">Emblems</option>
<option value="landmass">Pure landmass</option>
<option hidden value="custom">Custom (not saved)</option>
</select>
<button
id="savePresetButton"
data-tip="Click to save displayed layers as a new preset"
class="icon-plus sideButton"
style="display: none"
onclick="savePreset()"
></button>
<button
id="removePresetButton"
data-tip="Click to remove current custom preset"
class="icon-minus sideButton"
style="display: none"
onclick="removePreset()"
></button>
<p>Displayed layers and layers order:</p>
<ul
data-tip="Click to toggle a layer, drag to raise or lower a layer. Ctrl + click to edit layer style"
id="mapLayers"
>
<li
id="toggleTexture"
data-tip="Texture overlay: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="X"
onclick="toggleTexture(event)"
>
Te<u>x</u>ture
</li>
<li
id="toggleHeight"
data-tip="Heightmap: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="H"
onclick="toggleHeight(event)"
>
<u>H</u>eightmap
</li>
<li
id="toggleBiomes"
data-tip="Biomes: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="B"
onclick="toggleBiomes(event)"
>
<u>B</u>iomes
</li>
<li
id="toggleCells"
data-tip="Cells structure: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="E"
onclick="toggleCells(event)"
>
C<u>e</u>lls
</li>
<li
id="toggleGrid"
data-tip="Grid: click to toggle, drag to raise or lower. Ctrl + click to edit layer style and select type"
data-shortcut="G"
onclick="toggleGrid(event)"
>
<u>G</u>rid
</li>
<li
id="toggleCoordinates"
data-tip="Coordinate grid: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="O"
onclick="toggleCoordinates(event)"
>
C<u>o</u>ordinates
</li>
<li
id="toggleCompass"
data-tip="Wind (Compass) Rose: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="W"
onclick="toggleCompass(event)"
>
<u>W</u>ind Rose
</li>
<li
id="toggleRivers"
data-tip="Rivers: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="V"
onclick="toggleRivers(event)"
>
Ri<u>v</u>ers
</li>
<li
id="toggleRelief"
data-tip="Relief and biome icons: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="F"
onclick="toggleRelief(event)"
>
Relie<u>f</u>
</li>
<li
id="toggleReligions"
data-tip="Religions: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="R"
onclick="toggleReligions(event)"
>
<u>R</u>eligions
</li>
<li
id="toggleCultures"
data-tip="Cultures: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="C"
onclick="toggleCultures(event)"
>
<u>C</u>ultures
</li>
<li
id="toggleStates"
data-tip="States: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="S"
onclick="toggleStates(event)"
>
<u>S</u>tates
</li>
<li
id="toggleProvinces"
data-tip="Provinces: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="P"
onclick="toggleProvinces(event)"
>
<u>P</u>rovinces
</li>
<li
id="toggleZones"
data-tip="Zones: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="Z"
onclick="toggleZones(event)"
>
<u>Z</u>ones
</li>
<li
id="toggleBorders"
data-tip="State borders: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="D"
onclick="toggleBorders(event)"
>
Bor<u>d</u>ers
</li>
<li
id="toggleRoutes"
data-tip="Trade routes: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="U"
onclick="toggleRoutes(event)"
>
Ro<u>u</u>tes
</li>
<li
id="toggleTemperature"
data-tip="Temperature map: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="T"
onclick="toggleTemperature(event)"
>
<u>T</u>emperature
</li>
<li
id="togglePopulation"
data-tip="Population map: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="N"
onclick="togglePopulation(event)"
>
Populatio<u>n</u>
</li>
<li
id="toggleIce"
data-tip="Icebergs and glaciers: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="J"
onclick="toggleIce(event)"
>
Ice
</li>
<li
id="togglePrecipitation"
data-tip="Precipitation map: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="A"
onclick="togglePrecipitation(event)"
>
Precipit<u>a</u>tion
</li>
<li
id="toggleEmblems"
data-tip="Emblems: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="Y"
onclick="toggleEmblems(event)"
>
Emblems
</li>
<li
id="toggleLabels"
data-tip="Labels: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="L"
onclick="toggleLabels(event)"
>
<u>L</u>abels
</li>
<li
id="toggleBurgIcons"
data-tip="Burg icons: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="I"
onclick="toggleBurgIcons(event)"
>
<u>I</u>cons
</li>
<li
id="toggleMilitary"
data-tip="Military forces: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="M"
onclick="toggleMilitary(event)"
>
<u>M</u>ilitary
</li>
<li
id="toggleMarkers"
data-tip="Markers: click to toggle, drag to raise or lower the layer. Ctrl + click to edit layer style"
data-shortcut="K"
onclick="toggleMarkers(event)"
>
Mar<u>k</u>ers
</li>
<li
id="toggleRulers"
data-tip="Rulers: click to toggle, drag to move, click on label to delete. Ctrl + click to edit layer style"
data-shortcut="= (equal sign)"
onclick="toggleRulers(event)"
>
Rulers
</li>
<li
id="toggleScaleBar"
data-tip="Scale Bar: click to toggle. Ctrl + click to edit style"
data-shortcut="/ (slash sign)"
onclick="toggleScaleBar(event)"
class="solid"
>
Scale Bar
</li>
<li
id="toggleVignette"
data-tip="Vignette (border fading): click to toggle. Ctrl + click to edit style"
data-shortcut="[ (left square bracket)"
onclick="toggleVignette(event)"
class="solid"
>
Vignette
</li>
</ul>
<div class="tip">Click to toggle, drag to raise or lower the layer</div>
<div class="tip">Ctrl + click to edit layer style</div>
<div id="viewMode" data-tip="Set view node">
<p>View mode:</p>
<button data-tip="Standard view mode that allows to edit the map" id="viewStandard" class="pressed">
Standard
</button>
<button
data-tip="Map presentation in 3D scene. Works best for heightmap. Cannot be used for editing"
id="viewMesh"
>
3D scene
</button>
<button data-tip="Project map on globe. Cannot be used for editing" id="viewGlobe">Globe</button>
</div>
</div>
<div id="styleContent" class="tabcontent">
<p
data-tip="Select a style preset. State labels may required regeneration if font is changed"
style="display: inline-block"
>
Style preset:
</p>
<select
data-tip="Select a style preset"
id="stylePreset"
onchange="requestStylePresetChange(this.value)"
style="width: 45%; text-transform: capitalize"
></select>
<button
id="addStyleButton"
data-tip="Click to save current style as a new preset"
class="icon-plus sideButton"
style="display: inline-block"
onclick="addStylePreset()"
></button>
<button
id="removeStyleButton"
data-tip="Click to remove current custom style preset"
class="icon-minus sideButton"
style="display: none"
onclick="requestRemoveStylePreset()"
></button>
<p data-tip="Select an element to edit its style" style="display: inline-block">Select element:</p>
<select
data-tip="Select an element to edit its style (list is ordered alphabetically)"
id="styleElementSelect"
style="width: 42%"
>
<option value="anchors">Anchor Icons</option>
<option value="biomes">Biomes</option>
<option value="borders">Borders</option>
<option value="burgIcons">Burg Icons</option>
<option value="cells">Cells</option>
<option value="coastline">Coastline</option>
<option value="coordinates">Coordinates</option>
<option value="cults">Cultures</option>
<option value="emblems">Emblems</option>
<option value="fogging">Fogging</option>
<option value="gridOverlay">Grid</option>
<option value="terrs">Heightmap</option>
<option value="ice">Ice</option>
<option value="labels">Labels</option>
<option value="lakes">Lakes</option>
<option value="landmass">Landmass</option>
<option value="legend">Legend</option>
<option value="markers">Markers</option>
<option value="armies">Military</option>
<option value="ocean">Ocean</option>
<option value="population">Population</option>
<option value="prec">Precipitation</option>
<option value="provs">Provinces</option>
<option value="terrain">Relief Icons</option>
<option value="relig">Religions</option>
<option value="rivers">Rivers</option>
<option value="routes">Routes</option>
<option value="ruler">Rulers</option>
<option value="scaleBar">Scale Bar</option>
<option value="regions" selected>States</option>
<option value="temperature">Temperature</option>
<option value="texture">Texture</option>
<option value="vignette">Vignette</option>
<option value="compass">Wind Rose</option>
<option value="zones">Zones</option>
</select>
<table id="styleElements">
<caption
id="styleIsOff"
data-tip="The selected layer is not visible. Toogle it on to see style changes effect"
>
Ensure the element visibility is toggled on!
</caption>
<tbody id="styleGroup">
<tr data-tip="Select element group">
<td><b>Group</b></td>
<td>
<select id="styleGroupSelect"></select>
</td>
</tr>
</tbody>
<tbody id="styleHeightmap">
<tr id="styleHeightmapRenderOceanOption" data-tip="Check to render ocean heights">
<td colspan="2">
<input id="styleHeightmapRenderOcean" class="checkbox" type="checkbox" />
<label for="styleHeightmapRenderOcean" class="checkbox-label">Render ocean heights</label>
</td>
</tr>
<tr data-tip="Terracing power. Set to 0 to toggle off">
<td>Terracing</td>
<td>
<slider-input id="styleHeightmapTerracing" min="0" max="20" step="1"></slider-input>
</td>
</tr>
<tr data-tip="Layers reduction rate. Increase to improve performance">
<td>Reduce layers</td>
<td>
<slider-input id="styleHeightmapSkip" min="0" max="10" step="1"></slider-input>
</td>
</tr>
<tr data-tip="Line simplification rate. Increase to slightly improve performance">
<td>Simplify line</td>
<td>
<slider-input id="styleHeightmapSimplification" min="0" max="10" step="1"></slider-input>
</td>
</tr>
<tr data-tip="Select line interpolation type">
<td>Line style</td>
<td>
<select id="styleHeightmapCurve">
<option value="curveBasisClosed" selected>Curved</option>
<option value="curveLinear">Linear</option>
<option value="curveStep">Rectangular</option>
</select>
</td>
</tr>
<tr data-tip="Select color scheme for the element">
<td>Color scheme</td>
<td>
<select id="styleHeightmapScheme" style="width: 86%"></select>
<button
id="openCreateHeightmapSchemeButton"
data-tip="Click to add a custom heightmap color scheme"
data-stops="#ffffff,#EEEECC,#D2B48C,#008000,#008080"
class="icon-plus sideButton"
></button>
</td>
</tr>
</tbody>
<tbody id="styleOpacity" style="display: none">
<tr data-tip="Set opacity. 0: transparent, 1: solid">
<td>Opacity</td>
<td>
<slider-input id="styleOpacityInput" min="0" max="1" step="0.01"></slider-input>
</td>
</tr>
</tbody>
<tbody id="styleLegend">
<tr data-tip="Set maximum number of items in one column">
<td>Column items</td>
<td>
<slider-input id="styleLegendColItems" min="1" max="30" step="1"></slider-input>
</td>
</tr>
<tr data-tip="Set background color">
<td>Background</td>
<td>
<input id="styleLegendBack" type="color" value="#ffffff" />
<output id="styleLegendBackOutput">#ffffff</output>
</td>
</tr>
<tr data-tip="Set background opacity">
<td>Opacity</td>
<td>
<slider-input id="styleLegendOpacity" min="0" max="1" step=".01"></slider-input>
</td>
</tr>
</tbody>
<tbody id="stylePopulation">
<tr data-tip="Set bar color for rural population">
<td>Rural color</td>
<td>
<input id="stylePopulationRuralStrokeInput" type="color" value="#0000ff" />
<output id="stylePopulationRuralStrokeOutput">#0000ff</output>
</td>
</tr>
<tr data-tip="Set bar color for urban population">
<td>Urban color</td>
<td>
<input id="stylePopulationUrbanStrokeInput" type="color" value="#ff0000" />
<output id="stylePopulationUrbanStrokeOutput">#ff0000</output>
</td>
</tr>
</tbody>
<tbody id="styleTexture">
<tr data-tip="Select texture image. Big textures can highly affect performance">
<td>Image</td>
<td>
<select id="styleTextureInput" style="width: 86%">
<option value="">No texture</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="Click and provide a URL to image to be set as a texture"
class="icon-plus sideButton"
onclick="textureProvideURL()"
></button>
</td>
</tr>
<tr data-tip="Shift the texture by axes">
<td>Shift by axes</td>
<td>
<input id="styleTextureShiftX" type="number" value="0" data-tip="Shift texture by x axis in pixels" />
<input id="styleTextureShiftY" type="number" value="0" data-tip="Shift texture by y axis in pixels" />
</td>
</tr>
</tbody>
<tbody id="styleVignette">
<tr data-tip="Select precreated vignette">
<td>Preset</td>
<td>
<select id="styleVignettePreset"></select>
</td>
</tr>
<tr data-tip="Vignette rectangle position (in percents)">
<td>Position</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>width </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>height </span>
<input id="styleVignetteHeight" type="number" min="0" max="100" step="0.1" style="width: 5em" />
</div>
</td>
</tr>
<tr data-tip="Set vignette X and Y radius (in percents)">
<td>Radius</td>
<td>
<span>x </span>
<input id="styleVignetteRx" type="number" min="0" max="50" style="width: 5em" />