-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathcycle.oss
1307 lines (1087 loc) · 42.3 KB
/
cycle.oss
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
OSS
/*
See http://libosmscout.sourceforge.net/documentation/stylesheet/
for an description of the style sheet syntax.
*/
/*
Some general rules in the design of this specific style sheet:
Labels:
* A possible icon will always show on top
* The main label (the name of the object) will always be shown below the icon (else on top)
* A possible additional label (height of a peak) will be placed below the main label.
*/
FLAG
daylight = true;
waterway = true;
wood = true;
elevationContours = true;
IF daylight {
_natural = true;
_railway = true;
_leisure = true;
_building = true;
_minorBuilding = true;
}
ELSE {
_natural = false;
_railway = false;
_leisure = false;
_building = false;
_minorBuilding = false;
}
ORDER WAYS
GROUP _route
GROUP highway_motorway
GROUP highway_motorway_trunk
GROUP highway_motorway_primary
GROUP highway_trunk
GROUP aerialway_gondola, aerialway_chair_lift, aerialway_drag_lift
GROUP highway_primary
GROUP highway_secondary
GROUP highway_tertiary
GROUP highway_motorway_link, highway_trunk_link, highway_primary_link, highway_secondary_link, highway_tertiary_link
GROUP highway_unclassified, highway_road, highway_residential
GROUP railway_rail,
aeroway_runway, aeroway_taxiway
GROUP highway_living_street, highway_service, highway_bus_guideway,
railway_tram, railway_light_rail, railway_subway, public_transport_platform,
railway_narrow_gauge, railway_preserved
GROUP highway_track, highway_pedestrian, highway_path, highway_cycleway,
highway_footway, highway_bridleway, highway_construction,
leisure_track
GROUP highway_steps, barrier_fence
GROUP waterway_weir, route_ferry
GROUP waterway_river, waterway_canal, waterway_drain, waterway_ditch, waterway_stream
GROUP elevation_contour_major, elevation_contour_medium, elevation_contour_minor
CONST
MAG stepsMag = veryClose;
MAG labelPathsMag = veryClose;
MAG specialBuildingMag = close;
MAG labelSpecialBuildingMag = closer;
MAG buildingMag = closer;
MAG labelBuildingMag = veryClose;
MAG minorBuildingMag = block;
// road width
WIDTH motorwayWidth = 20m;
WIDTH trunkWidth = 18m;
WIDTH primaryWidth = 14m;
WIDTH secondaryWidth = 12m;
WIDTH tertiaryWidth = 10m;
WIDTH roadWidth = 8m;
WIDTH wayWidth = 8m;
// Label priorities
UINT labelPrioWaypoint = 0;
UINT labelPrioContinent = 1;
UINT labelPrioIsland = 1;
UINT labelPrioCountry = 2;
UINT labelPrioState = 3;
UINT labelPrioRegion = 4;
UINT labelPrioCounty = 5;
UINT labelPrioMillionCity = 6;
UINT labelPrioBigCity = 7;
UINT labelPrioCity = 8;
UINT labelShieldMotorway = 9;
UINT labelShieldTrunk = 11;
UINT labelShieldPrimary = 11;
UINT labelPrioTown = 12;
UINT labelPrioVillage = 13;
UINT labelPrioHamlet = 14;
UINT labelPrioSuburb = 15;
UINT labelPrioLocality = 16;
UINT labelPrioCycle = 17;
UINT labelPrioAeroway = 17;
UINT labelPrioFerry = 17;
UINT labelPrioPublicTransportWay = 17;
UINT labelPrioHighway = 18;
UINT labelPrioOtherWays = 19;
UINT labelPrioNatural = 20;
UINT labelPrioLanduse = 25;
UINT labelPrioLeisure = 26;
UINT labelPrioPeak = 29;
UINT labelPrioHighwayServices = 34;
UINT labelPrioRailwayStation = 35;
UINT labelPrioSpecialBuilding = 37;
UINT labelPrioMajorBuilding = 38;
UINT labelPrioRailwayHalt = 40;
UINT labelPrioTramHalt = 40;
UINT labelPrioHighwayArea = 43;
UINT labelPrioAmenity = 45;
UINT labelPrioShop = 50;
UINT labelPrioHighwayJunction = 55;
UINT labelPrioBuilding = 100;
UINT labelPrioElevationContour = 500;
// For debugging :-)
COLOR red = #ff0000;
// Default label color
IF daylight {
COLOR labelColor = #000000;
COLOR emphasizeColor = #ffffff;
}
ELSE {
COLOR labelColor = #a0a0a0;
COLOR emphasizeColor = #707070;
}
// Pseudo types
COLOR routeColor = #ae00ff88;
COLOR trackColor = #10a000a0;
COLOR highlightedColor = @routeColor;
// Ground tiles
IF daylight {
COLOR waterColor = #85bdd6;
COLOR waterLabelColor = darken(@waterColor, 0.5);
COLOR landColor = #f1eee9;
COLOR unknownColor = @landColor;
}
ELSE {
COLOR waterColor = darken(#9acffd, 0.5);
COLOR waterLabelColor = darken(@waterColor, 0.5);
COLOR landColor = #333333;
COLOR unknownColor = @landColor;
}
COLOR seaColor = @waterColor;
COLOR cliffColor = #440000;
// Borders
COLOR countryBorderColor = #ff0000;
// Contour
COLOR majorContourColor = #9f9f9f;
COLOR mediumContourColor = #a5a5a5;
COLOR minorContourColor = #aaaaaa;
COLOR contourLabelColor = #505050;
// Landuse, water
IF daylight {
COLOR allotmentsColor = #c8b084;
}
ELSE {
COLOR allotmentsColor = darken(#c8b084,0.5);
}
COLOR beachColor = #eecc55;
COLOR brownFieldColor = #b6b592;
COLOR brownFieldLabelColor = darken(@brownFieldColor, 0.5);
COLOR cemeteryColor = #a9caae;
COLOR commercialColor = #efc8c8;
COLOR constructionColor = #9d9d6c;
COLOR farmColor = #ead8bd;
COLOR farmyardColor = #dcbe92;
COLOR fellColor = #f9f9f9;
IF daylight {
COLOR woodColor = #aed1a0;
}
ELSE {
COLOR woodColor = darken(#aed1a0, 0.5);
}
COLOR woodLabelColor = darken(@woodColor, 0.5);
COLOR glacierColor = #ddecec;
COLOR grassColor = #e7f3ef;
COLOR greenFieldColor = #dcdcc8;
COLOR heathColor = #ffffc0;
COLOR industrialColor = #dfd1d6;
COLOR damColor = #b2a7ab;
IF daylight {
COLOR landFillColor = #b6b591;
}
ELSE {
COLOR landFillColor = darken(#b6b591, 0.5);
}
COLOR marshColor = #efe8ff;
COLOR militaryColor = #fe989822;
COLOR militaryLabelColor = darken(@militaryColor, 0.5);
COLOR quarryColor = #b3b3b3;
IF daylight {
COLOR residentialColor = #ebebeb;
COLOR recreationColor = #bce2ca;
}
ELSE {
COLOR residentialColor = darken(#ebebeb, 0.5);
COLOR recreationColor = #bce2ca;
}
COLOR residentialLabelColor = darken(@residentialColor, 0.5);
COLOR retailColor = #feeaea;
COLOR retailLabelColor = darken(@retailColor, 0.5);
COLOR scrubColor = #c9d9cf;
COLOR vineyardColor = #b3e2a8;
COLOR wetlandColor = #bdd8d8;
COLOR peakSymbolColor = #9c5e29;
COLOR peakLabelColor = #9c5329;
// Ways
COLOR bridgeColor = #000000; // black
IF daylight {
COLOR aerowayColor = #d5ddbd;
COLOR motorwayColor = #bbbbbb;
COLOR motorwayAltColor = #4440ec; // dark blue
COLOR trunkColor = #bbbbbb;
COLOR trunkAltColor = #7674ec; // lighther blue
COLOR primaryColor = #f38689; // red
COLOR secondaryColor = #fecb8b; // orange
COLOR tertiaryColor = #fef7ae; // yelow
COLOR roadColor = #ffffff; // white
COLOR roadBColor = #b1a095;
COLOR livingStreetColor = #bababa; // grey
COLOR cyclewayColor = #ec47c7;
COLOR pedestrianColor = #ededed;
COLOR routeBicycleColor = #0000ff;
COLOR wayLabelColor = #000000; // black
}
ELSE {
COLOR aerowayColor = darken(#d5ddbd, 0.7);
COLOR motorwayColor = darken(#bbbbbb, 0.5);
COLOR motorwayAltColor = darken(#4440ec, 0.5);
COLOR trunkColor = darken(#bbbbbb, 0.5);
COLOR trunkAltColor = darken(#7674ec, 0.5);
COLOR primaryColor = darken(#ec4044, 0.7);
COLOR secondaryColor = darken(#fdac44, 0.7);
COLOR tertiaryColor = darken(#fef271, 0.7);
COLOR roadColor = darken(#ffffff, 0.5);
COLOR roadBColor = darken(#bfbfbf, 0.5);
COLOR livingStreetColor = darken(#bababa, 0.5);
COLOR cyclewayColor = darken(#ec47c7, 0.3);
COLOR pedestrianColor = darken(#ededed, 0.3);
COLOR routeBicycleColor = #1cb7ff;
COLOR wayLabelColor = #cccccc;
}
COLOR thinRoadColor = #fdd654;
COLOR thinMotorwayColor = darken(@motorwayColor, 0.2);
COLOR thinTrunkColor = @trunkColor;
COLOR thinPrimaryColor = @primaryColor;
COLOR thinSecondaryColor = @secondaryColor;
COLOR thinTertiaryColor = darken(@tertiaryColor, 0.2);
COLOR motorwayShieldColor = @motorwayAltColor;
COLOR motorwayJunctionLabelColor = lighten(@motorwayAltColor, 0.5);
COLOR trunkShieldColor = @trunkAltColor;
COLOR primaryShieldColor = @primaryColor;
COLOR viaFerrataEasyColor = darken(#fdac44, 0.4);
COLOR viaFerrataModerateColor = #fdac44;
COLOR viaFerrataDifficultColor = #ec4044;
COLOR viaFerrataExtremeColor = #ff0000;
// Buildings
COLOR buildingColor = #d9d9d9;
COLOR buildingBorderColor = darken(@buildingColor, 0.3);
COLOR buildingLabelColor = darken(@buildingColor, 0.5);
// Travel
COLOR onewayArrowColor = #00000028;
COLOR busSymbolColor = #7885b0;
COLOR railwayColor = #bb75d9;
COLOR railwaySymbolColor = @railwayColor;
COLOR railwayLabelColor = darken(@railwayColor, 0.5);
COLOR railwayStationColor = @railwayColor;
// Leisure
COLOR natureReserveColor = #abde9622;
COLOR natureReserveLabelColor = #566f4bb0;
COLOR natureReserveBorderColor = #82a77180;
COLOR playgroundColor = #ccffff;
COLOR playgroundBorderColor = darken(@playgroundColor, 0.3);
COLOR pitchColor = #90d3b9;
COLOR pitchBorderColor = #b0b0b0;
COLOR pitchLabelColor = darken(@pitchColor,0.5);
// Church
COLOR churchColor = #cccccc;
COLOR churchLabelColor = darken(@churchColor, 0.5);
COLOR churchBuildingColor = #bfbfbf;
COLOR churchBuildingBorderColor = darken(@churchBuildingColor, 0.3);
// Tourism
COLOR tourismColor = #c8c8db;
COLOR tourismBuildingColor = #a6a6d9;
COLOR tourismBuildingBorderColor = darken(@tourismColor, 0.3);
COLOR tourismLabelColor = darken(@tourismColor, 0.5);
// Shop
COLOR shopColor = #d9bb98;
COLOR shopBorderColor = darken(@shopColor, 0.3);
COLOR shopLabelColor = darken(@shopColor, 0.5);
// Amenity
IF daylight {
COLOR amenityColor = #f0f0d8;
COLOR amenityBuildingColor = #d9b8b8;
COLOR amenityGraveYardColor = #bde3cb;
}
ELSE {
COLOR amenityColor = darken(#f0f0d8, 0.5);
COLOR amenityBuildingColor = darken(#d9b8b8, 0.5);
COLOR amenityGraveYardColor = darken(#bde3cb, 0.5);
}
COLOR amenityLabelColor = darken(@amenityBuildingColor, 0.5);
COLOR amenityBuildingBorderColor = darken(@amenityBuildingColor, 0.3);
IF daylight {
COLOR parkingColor = #f6eeb6;
COLOR parkingBuildingColor = #c4c393;
}
ELSE {
COLOR parkingColor = darken(#f6eeb6, 0.5);
COLOR parkingBuildingColor = darken(#c4c393, 0.5);
}
COLOR parkingBorderColor = darken(@parkingColor, 0.3);
COLOR parkingBuildingBorderColor = darken(@parkingBuildingColor, 0.3);
COLOR hospitalSymbolColor = #da0092;
COLOR hospitalColor = darken(@amenityColor, 0.1);
COLOR hospitalBorderColor = darken(@hospitalColor, 0.3);
COLOR hospitalBuildingColor = darken(@amenityBuildingColor, 0.1);
COLOR hospitalBuildingBorderColor = darken(@hospitalBuildingColor, 0.3);
COLOR pharmacySymbolColor = #da0092;
COLOR postColor = #e8f000;
COLOR postSymbolColor = #e8f000;
COLOR postBuildingColor = #d2d900;
COLOR postBuildingBorderColor = darken(@postBuildingColor, 0.3);
COLOR postLabelColor = darken(@postColor, 0.5);
COLOR wallColor = #663e1b;
COLOR waypointRedColor = #b32020;
COLOR waypointGreenColor = #00b200;
COLOR waypointBlueColor = #203bb3;
COLOR waypointYellowColor = #dfed00;
MODULE "include/symbols"
MODULE "include/land_sea"
MODULE "include/route"
MODULE "include/track"
MODULE "include/waypoint"
MODULE "include/roads"
MODULE "include/man_made"
STYLE
// -------------------------------------------------------
//
// Synthetic
//
/*
NODE "internal_start"
ICON { name: start;}
NODE "internal_target"
ICON { name: target;} */
[MAG world-] {
[TYPE _route] WAY {color: @routeColor; displayWidth: 1.5mm; width: 6m; priority: 100;}
//[TYPE _osm_tile_border] WAY {color: #222222; displayWidth: 0.2mm; }
//[TYPE _osm_subtile_border] WAY {color: #444444; displayWidth: 0.1mm; }
//[TYPE _tile_coastline] WAY {color: #ff0000; displayWidth: 0.1mm;}
//[TYPE boundary_country] WAY {color: @countryBorderColor; displayWidth: 0.4mm; dash: 7,3;}
}
// -------------------------------------------------------
//
// contour lines
//
IF elevationContours {
[MAG suburb-] {
[TYPE elevation_contour_major] {
WAY {color: @majorContourColor; displayWidth: 0.150mm; }
WAY.TEXT { label: Ele.inLocaleUnit; color: @contourLabelColor; size: 0.7; priority: @labelPrioElevationContour; }
}
}
[MAG detail-] {
[TYPE elevation_contour_medium] {
WAY {color: @mediumContourColor; displayWidth: 0.100mm; }
WAY.TEXT { label: Ele.inLocaleUnit; color: @contourLabelColor; size: 0.8; priority: @labelPrioElevationContour; }
}
[TYPE elevation_contour_minor] {
WAY {color: @minorContourColor; displayWidth: 0.075mm; }
}
}
}
// -------------------------------------------------------
//
// natural_* (without coastline)
//
IF _natural {
[MAG county-] {
[TYPE natural_glacier] AREA { color: @glacierColor; }
[TYPE natural_grassland] AREA { color: @grassColor; }
[TYPE natural_fell] AREA { color: @fellColor; }
[TYPE natural_heath] AREA { color: @heathColor; }
[TYPE natural_wetland_marsh] AREA { color: @marshColor; }
[TYPE natural_wetland, natural_wetland_tidalflat] AREA { color: @wetlandColor; }
[TYPE natural_water] AREA { color: @waterColor; }
[TYPE natural_land] AREA { color: @landColor; }
}
[MAG city-] {
[TYPE natural_beach] AREA { color: @beachColor; }
[TYPE natural_scrub] AREA { color: @scrubColor; }
}
[MAG detail-] {
[TYPE natural_glacier,
natural_fell,
natural_grassland,
natural_heath,
natural_scrub,
natural_wetland,
natural_wetland_marsh,
natural_wetland_tidalflat,
natural_beach,
natural_land] AREA.TEXT { label: Name.name ; priority: @labelPrioNatural; autoSize: true;}
[TYPE natural_water] AREA.TEXT { label: Name.name ; priority: @labelPrioNatural; color: @waterLabelColor; autoSize: true;}
[TYPE natural_peak] {
NODE.TEXT#peakName { label: Name.name; style: emphasize; color: @peakLabelColor; priority: @labelPrioPeak; size: 0.9; position: 1; }
NODE.TEXT#ele { label: Ele.inLocaleUnit; style: emphasize; color: @peakLabelColor; priority: @labelPrioPeak; size: 0.9; position: 2;}
}
}
[MAG city-] {
[TYPE natural_peak] NODE.ICON { symbol: natural_peak; }
}
}
IF wood {
[MAG county-] {
[TYPE wood] AREA { color: @woodColor; }
}
[MAG detail-] {
[TYPE wood] {
AREA.TEXT { label: Name.name ; priority: @labelPrioNatural; color: @woodLabelColor; autoSize: true;}
}
}
}
// -------------------------------------------------------
//
// waterway_*
//
IF waterway {
[MAG proximity-] {
[TYPE waterway_river,
waterway_canal] {
[SIZE 15m 0.25mm:3px<] {
WAY {color: @waterColor; width: 15m;}
[FEATURE Tunnel] {
WAY#ldash {color: @waterColor; dash: 3,3; displayWidth: 0.3mm; offset: -7.5m; priority: 1; }
WAY#rdash {color: @waterColor; dash: 3,3; displayWidth: 0.3mm; offset: 7.5m; priority: 1;}
WAY {color: #f2f6f6; width: 15m;}
}
}
[SIZE 15m <0.25mm:3px] {
WAY {color: @waterColor; displayWidth: 0.25mm; }
[FEATURE Tunnel] {
WAY {color: #ff000000;}
}
}
AREA { color: @waterColor;}
}
}
[MAG cityOver-] {
[TYPE waterway_dock,
waterway_riverbank] AREA { color: @waterColor; }
[TYPE waterway_stream] {
[SIZE 2m 0.25mm:3px<] WAY {color: @waterColor; width: 2m;}
[SIZE 2m <0.25mm:3px] WAY {color: @waterColor; displayWidth: 0.25mm;}
[FEATURE Tunnel] {
WAY { dash: 0.4,4;}
}
}
}
[MAG detail-] {
[TYPE waterway_drain,
waterway_ditch] {
[SIZE 3m 0.1mm:3px<] WAY {color: @waterColor; width: 3m;}
[SIZE 3m <0.1mm:3px] WAY {color: @waterColor; displayWidth: 0.1mm; }
AREA { color: @waterColor;}
}
[TYPE waterway_weir] {
WAY {color: lighten(@waterColor, 0.3); width: 3m; dash: 0.5,2;}
AREA { color: lighten(@waterColor, 0.3);}
}
}
// Labels
[MAG proximity-] {
[TYPE waterway_dock] AREA.TEXT { label: Name.name; priority: 25; color: @waterLabelColor; autoSize: true;}
}
[MAG veryClose-] {
[TYPE waterway_stream,
waterway_drain,
waterway_ditch,
waterway_weir,
waterway_river,
waterway_canal]
WAY.TEXT { label: Name.name; color: @waterLabelColor; priority: @labelPrioNatural; }
[TYPE waterway_stream,
waterway_river,
waterway_canal]
WAY.SYMBOL {symbol: stream_arrow; symbolSpace: 50mm;}
[TYPE waterway_riverbank] AREA.TEXT { label: Name.name; priority: 25; color: @waterLabelColor;}
}
}
// -------------------------------------------------------
//
// highway_* overrides
//
[MAG state-] {
[TYPE highway_trunk,
highway_motorway_trunk] {
[SIZE @trunkWidth 0.4mm:3px<] {
WAY#outline { color: darken(@trunkColor,0.4); width: @trunkWidth; displayWidth: 0.5mm; priority: -1; joinCap: butt; }
WAY { color: @trunkColor; width: @trunkWidth;}
}
[SIZE @trunkWidth <0.4mm:3px] WAY { color: @trunkColor; displayWidth: 0.4mm;}
}
}
[MAG detail-] {
[TYPE highway_road] {
[SIZE 8m 0.1mm:3px<] {
WAY#outline { color: @roadBColor; width: 8m; displayWidth: 0.5mm; priority: -1; joinCap: butt; }
WAY { color: @roadColor; width: 8m;}
}
[SIZE 8m <0.1mm:3px] WAY { color: #888888; displayWidth: 0.1mm;}
}
[TYPE highway_unclassified,
highway_residential] {
[SIZE 8m 0.1mm:3px<] {
WAY#outline { color: @roadBColor; width: 8m; displayWidth: 0.5mm; priority: -1; joinCap: butt; }
WAY { color: @roadColor; width: 8m;}
}
[SIZE 8m <0.1mm:3px] WAY { color: #a08080; displayWidth: 0.15mm; }
AREA { color: @roadColor; }
AREA.BORDER { color: @roadBColor; width: 0.1mm;}
}
}
// -------------------------------------------------------
//
// railway
//
IF _railway {
[MAG detail-] {
[TYPE railway_rail] {
[SIZE 5m 0.25mm:3px<] {
WAY#outline { color: #b3b3b3; width: 5m; displayWidth: 0.5mm; priority: -1; joinCap: butt; endCap: butt; }
WAY {color: #505050; dash: 3,3; joinCap: butt; endCap: butt; gapColor: #ffffff; width: 5m;}
}
[SIZE 5m <0.25mm:3px] WAY {color: #404040; dash: 3,3; joinCap: butt; endCap: butt; gapColor: #ffffff; displayWidth: 0.25mm;}
}
}
[MAG close-] {
[TYPE railway_disused] WAY {color: #939393; dash: 1.5,1.5; joinCap: butt; endCap: butt; displayWidth: 0.2mm; width: 4m;}
[TYPE railway_tram] WAY {color: #808080; displayWidth: 0.25mm; priority: 50;}
[TYPE railway_light_rail] WAY {color: #808080; displayWidth: 0.25mm; width: 5m;}
[TYPE railway_narrow_gauge, railway_preserved] WAY {color: #808080; displayWidth: 0.20mm; width: 4m;}
[TYPE railway_funicular] WAY {color: #808080; displayWidth: 0.20mm; width: 4m;}
[TYPE railway_subway] {
WAY {color: #b3b3b3; dash: 1.5,1.5; displayWidth: 0.4mm; joinCap: butt; endCap: butt; }
}
}
[MAG closer-] {
[TYPE railway_tram,
railway_light_rail,
railway_narrow_gauge,
railway_preserved,
railway_funicular
SIZE 5m 0.25mm:3px<] {
[FEATURE Tunnel] {
WAY {dash: 1,1; joinCap: butt; endCap: butt;}
}
[FEATURE Bridge] {
WAY#lbridge {color: @bridgeColor; displayWidth: 0.2mm; offset: -2.5m; displayOffset: -0.25mm;}
WAY#rbridge {color: @bridgeColor; displayWidth: 0.2mm; offset: 2.5m; displayOffset: 0.25mm;}
}
}
[TYPE railway_rail SIZE 5m 0.25mm:3px<] {
// Better rendering?
[FEATURE Tunnel] {
WAY#outline { dash: 0.5,0.5; }
}
[FEATURE Bridge] {
WAY#lbridge {color: @bridgeColor; displayWidth: 0.2mm; offset: -2.5m; displayOffset: -0.25mm;}
WAY#rbridge {color: @bridgeColor; displayWidth: 0.2mm; offset: 2.5m; displayOffset: 0.25mm;}
}
}
}
[MAG veryClose-] {
[TYPE railway_halt] NODE.ICON { symbol: railway_halt;}
[TYPE railway_tram_stop] NODE.ICON { symbol: railway_tram_stop;}
}
// Labels
[MAG close-] {
[TYPE railway_station] NODE.TEXT {label: Name.name; style: emphasize; color: @railwayLabelColor; priority: @labelPrioRailwayStation; }
}
[MAG veryClose-] {
[TYPE railway_halt] NODE.TEXT {label: Name.name; style: emphasize; color: @railwayLabelColor; priority: @labelPrioRailwayHalt;}
[TYPE railway_tram_stop] NODE.TEXT {label: Name.name; style: emphasize; color: @railwayLabelColor; priority: @labelPrioTramHalt; }
}
[MAG @labelPathsMag-] {
[TYPE railway_rail,
railway_tram,
railway_light_rail,
railway_narrow_gauge,
railway_preserved,
railway_funicular,
railway_subway,
public_transport_platform] WAY.TEXT { label: Name.name; size: 0.8; color: @railwayLabelColor; priority: @labelPrioPublicTransportWay; }
[TYPE public_transport_platform] AREA.TEXT { label: Name.name; color: #524a4a; size: 0.8; priority: @labelPrioTramHalt; }
}
}
// -------------------------------------------------------
//
// Landuse
//
IF daylight {
[MAG cityOver-] {
[TYPE landuse_farmland] AREA { color: @farmColor; }
[TYPE landuse_greenfield] AREA { color: @greenFieldColor; }
[TYPE landuse_industrial] AREA { color: @industrialColor; }
[TYPE landuse_landfill] AREA { color: @landFillColor; }
[TYPE landuse_quarry] AREA { color: @quarryColor; }
[TYPE landuse_reservoir] AREA { color: @waterColor; }
[TYPE landuse_residential] AREA { color: @residentialColor; }
}
[MAG city-] {
// Semiransparent overlay
[TYPE landuse_military] {
AREA { color: @militaryColor; }
AREA.BORDER { color: #fe9898; width: 0.2mm;}
}
}
[MAG suburb-] {
[TYPE landuse_basin] {
AREA { color: @waterColor; }
AREA.BORDER { color: #887b7b; width: 0.1mm; }
}
[TYPE landuse_farmyard] AREA { color: @farmyardColor; }
[TYPE landuse_allotments] AREA { color: @allotmentsColor; }
[TYPE landuse_vineyard] AREA { color: @vineyardColor; }
[TYPE landuse_railway] AREA { color: #dcdcc8; }
[TYPE landuse_cemetery] AREA { color: @cemeteryColor; pattern: "cemetery"; patternMinMag: detail; }
}
[MAG detail-] {
[TYPE landuse_commercial] AREA { color: @commercialColor; }
[TYPE landuse_brownfield] AREA { color: @brownFieldColor; }
[TYPE landuse_construction] AREA { color: @constructionColor; }
[TYPE landuse_recreation_ground] AREA { color: @recreationColor; }
[TYPE landuse_retail] {
AREA { color: @retailColor; }
AREA.BORDER { color: #c5a0a0; width: 0.1mm; }
}
}
[MAG close-] {
[TYPE landuse_grass] AREA { color: @grassColor; }
[TYPE landuse_orchard,
landuse_meadow,
landuse_village_green] AREA { color: #fafdf7; }
}
// Labels
[MAG suburb-] {
[TYPE landuse_military] AREA.TEXT { label: Name.name; priority: @labelPrioLanduse; color: @militaryLabelColor; autoSize: true;}
[TYPE landuse_brownfield] AREA.TEXT { label: Name.name; priority: @labelPrioLanduse; color: @brownFieldLabelColor; autoSize: true;}
[TYPE landuse_residential] AREA.TEXT { label: Name.name; priority: @labelPrioLanduse; color: @residentialLabelColor; autoSize: true;}
[TYPE landuse_retail] AREA.TEXT { label: Name.name; priority: @labelPrioLanduse; color: @retailLabelColor; autoSize: true;}
}
[MAG close-] {
[TYPE landuse_farmland,
landuse_farmyard,
landuse_quarry,
landuse_landfill,
landuse_basin,
landuse_reservoir,
landuse_vineyard,
landuse_grass,
landuse_greenfield,
landuse_orchard,
landuse_cemetery,
landuse_commercial,
landuse_meadow,
landuse_recreation_ground] AREA.TEXT { label: Name.name; priority: @labelPrioLanduse; autoSize: true;}
[TYPE landuse_industrial,
landuse_allotments] AREA.TEXT { label: Name.name; style: emphasize; priority: @labelPrioLanduse; autoSize: true;}
}
[MAG veryClose-] {
[TYPE landuse_railway,
landuse_construction,
landuse_village_green] AREA.TEXT { label: Name.name; priority: @labelPrioLanduse; autoSize: true; }
}
}
// -------------------------------------------------------
//
// Leisure
//
IF _leisure {
[MAG detail-] {
[TYPE leisure_pitch,
leisure_fitness_station] {
AREA { color: @pitchColor; }
AREA.BORDER { color: @pitchBorderColor; width: 0.1mm; }
}
[TYPE leisure_water_park] {
AREA { color: #f1eee8; }
AREA.BORDER { color: #887b7b; width: 0.1mm; }
}
[TYPE leisure_park] AREA { color: #dbf5e0; }
[TYPE leisure_common] AREA { color: #bde3cb; }
[TYPE leisure_marina,
leisure_fishing] AREA.BORDER { color: #b5d6f1; width: 0.3mm; dash: 6,6; }
[TYPE leisure_marina,
leisure_fishing] AREA { color: #b5d6f180; }
[TYPE leisure_ice_rink] AREA { color: #b5d6f1; }
}
[TYPE boundary_protected_area] {
[MAG stateOver-]{
AREA.BORDER#dashed { color: @natureReserveBorderColor; width: 0.3mm; dash: 6,6; displayOffset: -0.5mm; }
AREA.BORDER#solid { color: lighten(@natureReserveBorderColor, 0.3); width: 1.0mm; }
}
[MAG stateOver-cityOver]{
AREA.TEXT { label: Name.name; priority: @labelPrioNatural; color: @natureReserveLabelColor; autoSize: true;}
}
// Semiransparent overlay just for low zoom
[MAG stateOver-proximity]{
AREA { color: @natureReserveColor;}
}
}
[MAG city-] {
// Semiransparent overlay
[TYPE leisure_nature_reserve] {
AREA { color: @natureReserveColor; }
AREA.BORDER { color: @natureReserveBorderColor; width: 0.2mm;}
AREA.TEXT { label: Name.name; priority: @labelPrioNatural; color: @natureReserveLabelColor; autoSize: true;}
}
}
[MAG cityOver-] {
[TYPE leisure_golf_course] AREA { color: #e9fadc; }
}
[MAG detail-] {
[TYPE leisure_track] AREA { color: #7fdac2; }
[TYPE leisure_playground] {
AREA { color: @playgroundColor; }
AREA.BORDER { color: @playgroundBorderColor; width: 0.1mm;}
}
[TYPE leisure_garden] AREA { color: #eff9e2; }
}
// Labels
[MAG close-] {
[TYPE leisure_sports_centre,
leisure_golf_course,
leisure_stadium,
leisure_track,
leisure_water_park,
leisure_marina,
leisure_fishing,
leisure_park,
leisure_playground,
leisure_garden,
leisure_common,
leisure_ice_rink] AREA.TEXT { label: Name.name; priority: @labelPrioLeisure; autoSize: true; }
}
}
// Aerialways
[MAG city-] {
[TYPE aerialway_gondola]{
WAY {color: #202020; displayWidth: 0.08mm; width: 1m;}
WAY#gondola {color: #101010; dash: 1,15; joinCap: round; endCap: round; displayWidth: 0.15mm; width: 4m;}
}
[TYPE aerialway_chair_lift]{
WAY {color: #202020; displayWidth: 0.08mm; width: 1m;}
WAY#chair {color: #101010; dash: 0.3,5; joinCap: square; endCap: square; displayWidth: 0.15mm; width: 4m;}
}
[TYPE aerialway_drag_lift]{
WAY {color: #202020; displayWidth: 0.04mm; width: 0.5m;}
WAY#drag {color: #101010; dash: 0.2,5; joinCap: round; endCap: round; displayWidth: 0.15mm; width: 4m;}
}
}
// Routes
IF daylight {
[MAG cityOver-] {
[TYPE route_bicycle] {
ROUTE {color: lighten(@routeBicycleColor, 0.3); displayWidth: 0.3mm; priority: 50;}
}
}
[MAG detail-]{
[TYPE route_bicycle] {
ROUTE {color: lighten(@routeBicycleColor, 0.3); displayWidth: 0.5mm; width: 6m; priority: 50;}
}
}
[MAG close-] {
[TYPE route_bicycle] {
ROUTE {color: @routeBicycleColor; displayWidth: 0.5mm; width: 6m; priority: 50;}
ROUTE.TEXT {label: Ref.name; color: @routeBicycleColor; priority: @labelPrioCycle; offset: 3m; displayOffset: 2.0mm;}
}
}
}
ELSE {
[MAG cityOver-] {
[TYPE route_bicycle] {
ROUTE {color: darken(@routeBicycleColor, 0.3); displayWidth: 0.5mm; priority: 50;}
}
}
[MAG close-]{
[TYPE route_bicycle] {
ROUTE {color: darken(@routeBicycleColor, 0.1); displayWidth: 0.5mm; width: 6m; priority: 50;}
}
}
[MAG veryClose-] {
[TYPE route_bicycle] {
ROUTE {color: @routeBicycleColor; displayWidth: 0.5mm; width: 6m; priority: 50;}
}
}
[MAG closer-] {
[TYPE route_bicycle] {
ROUTE {color: @routeBicycleColor; displayWidth: 0.5mm; width: 6m; priority: 50;}
ROUTE.TEXT {label: Ref.name; color: @routeBicycleColor; priority: @labelPrioCycle; offset: 3m; displayOffset: 2.0mm;}
}
}
}
// Buildings
[MAG @specialBuildingMag-] {
[TYPE temple_building,
shrine_building,
christian_cathedral_building,
christian_chapel_building,
christian_church_building,
jewish_synagogue_building,
muslim_mosque_building,
worship_building] {
AREA { color: @churchBuildingColor; }
AREA.BORDER { color: @churchBuildingBorderColor; width: 0.1mm;}
}
[TYPE amenity_hospital_building] {
AREA { color: @hospitalBuildingColor; }
AREA.BORDER { color: @hospitalBuildingBorderColor; width: 0.1mm; }
}
[TYPE railway_station] AREA { color: @railwayStationColor; }
[TYPE leisure_stadium] AREA { color: #33cb98; }
}
IF _building {
[MAG @buildingMag-] {
[TYPE landuse_farmyard_building] {
AREA { color: #bcbcbc; }
AREA.BORDER { color: #887b7b; width: 0.1mm; }
}
[TYPE military_bunker,
military_barracks] AREA { color: #f59897; }
[TYPE military_bunker_building] AREA { color: #f59897; }
[TYPE power_sub_station] AREA { color: #bca9a9; }
[TYPE shop] {
AREA { color: @shopColor; }
AREA.BORDER { color: @shopBorderColor; width: 0.1mm; }