mapcomplete/assets
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
..
layers Fix issues with camera rotation 2021-04-28 17:21:06 +02:00
svg Small fixes 2021-04-23 17:22:01 +02:00
tagRenderings Add margins to last changed rendering 2021-04-23 12:58:25 +02:00
themes Fix and update hailhydrant source URLs 2021-04-28 17:21:06 +02:00
generic_osm_background.png Add social image 2021-04-06 23:55:18 +02:00
license_info.json Small fixes 2021-04-23 17:22:01 +02:00
mangrove_logo.png First version of reviews 2020-12-07 03:02:50 +01:00
social_image_front.png Add social image 2021-04-06 23:55:18 +02:00
SocialImage.png Add social image 2021-04-06 23:55:18 +02:00
translations.json fix double dot 2021-04-23 10:29:08 +02:00
weblogo.png Add logo's used as avatar on github 2020-12-13 20:19:46 +01:00
weblogo.svg Add logo's used as avatar on github 2020-12-13 20:19:46 +01:00