mapcomplete/assets/layers
Midgard 122acf8674 Fix issues with camera rotation
This commit fixes at least these issues that I was aware of:
* Cardinal directions (e.g. NE) were not recognized.
* The camera icon did not rotatie when direction=* was used instead of
  camera:direction, but the blue direction visualizer did.

Pietervdvn said he would have liked to convert the code for direction
normalizing to calculatedTags in a JSON file (as documented in
Docs/CalculatedTags.md), but when he saw the oneliners I had to produce
in response, I was allowed to keep it in SimpleMetaTagger.ts for now.
For your amusement, the oneliners are included below.

    "calculatedTags": [
      "_direction:numerical=(dir => dir === undefined ? undefined : ({N: 0, NNE: 22.5, NE: 45, ENE: 67.5, E: 90, ESE: 112.5, SE: 135, SSE: 157.5, S: 180, SSW: 202.5, SW: 225, WSW: 247.5, W: 270, WNW: 292.5, NW: 315, NNW: 337.5}[dir] ?? (isNaN(parseFloat(dir)) ? undefined : ((parseFloat(dir) % 360 + 360) % 360)))))(feat.properties['camera:direction'] ?? feat.properties.direction)",
      "_direction:leftright=feat.properties['_direction:numerical'] === undefined ? undefined : (feat.properties['_direction:numerical'] <= 180 ? 'right' : 'left')"
    ]
2021-04-28 17:21:06 +02:00
..
bench Move layers to canonical paths, rewrite some regexes as 'or' as to make the taginfo-information more accurate 2021-04-20 10:49:45 +02:00
bench_at_pt Move layers to canonical paths, rewrite some regexes as 'or' as to make the taginfo-information more accurate 2021-04-20 10:49:45 +02:00
bicycle_library Merge license info files together 2021-04-10 13:57:16 +02:00
bicycle_tube_vending_machine Merge license info files together 2021-04-10 13:57:16 +02:00
bike_cafe Unpacking some regexes for more accurate taginfo data 2021-04-20 11:04:22 +02:00
bike_cleaning Merge license info files together 2021-04-10 13:57:16 +02:00
bike_monitoring_station Merge license info files together 2021-04-10 13:57:16 +02:00
bike_parking Merge license info files together 2021-04-10 13:57:16 +02:00
bike_repair_station Update bike_repair_station.json 2021-04-21 14:20:46 +08:00
bike_shop Move layers to canonical paths, rewrite some regexes as 'or' as to make the taginfo-information more accurate 2021-04-20 10:49:45 +02:00
bike_themed_object Unpacking some regexes for more accurate taginfo data 2021-04-20 11:04:22 +02:00
birdhide Move layers to canonical paths, rewrite some regexes as 'or' as to make the taginfo-information more accurate 2021-04-20 10:49:45 +02:00
direction Fix issues with camera rotation 2021-04-28 17:21:06 +02:00
drinking_water Merge develop 2021-04-10 16:12:40 +02:00
ghost_bike Merge license info files together 2021-04-10 13:57:16 +02:00
grass_in_parks Small fixes 2021-04-23 17:22:01 +02:00
information_board Move layers to canonical paths, rewrite some regexes as 'or' as to make the taginfo-information more accurate 2021-04-20 10:49:45 +02:00
map Move layers to canonical paths, rewrite some regexes as 'or' as to make the taginfo-information more accurate 2021-04-20 10:49:45 +02:00
nature_reserve Small fixes 2021-04-23 17:22:01 +02:00
picnic_table Move layers to canonical paths, rewrite some regexes as 'or' as to make the taginfo-information more accurate 2021-04-20 10:49:45 +02:00
play_forest Merge license info files together 2021-04-10 13:57:16 +02:00
playground Small fixes 2021-04-23 17:22:01 +02:00
public_bookcase Move layers to canonical paths, rewrite some regexes as 'or' as to make the taginfo-information more accurate 2021-04-20 10:49:45 +02:00
slow_roads Only show woonerf-explantion on living-streets 2021-04-25 22:16:11 +02:00
sport_pitch Speelplekken style tweaks 2021-04-25 16:01:33 +02:00
surveillance_camera Fix issues with camera rotation 2021-04-28 17:21:06 +02:00
toilet Move layers to canonical paths, rewrite some regexes as 'or' as to make the taginfo-information more accurate 2021-04-20 10:49:45 +02:00
tree_node Move layers to canonical paths, rewrite some regexes as 'or' as to make the taginfo-information more accurate 2021-04-20 10:49:45 +02:00
viewpoint Merge license info files together 2021-04-10 13:57:16 +02:00
village_green Small fixes 2021-04-23 17:22:01 +02:00