Commit graph

159 commits

Author SHA1 Message Date
Midgard 998fd4bd74
Add fire theme with hydrants 2021-05-01 14:24:59 +02:00
Midgard 915b8ba3d8
Only show heritage in Belgium
Because the choices are Belgium-specific
2021-05-01 14:10:19 +02:00
Midgard 4a3537f925 Improve camera direction description
Also show the direction=* tag in camera popup (it was already used for
the icon orientation).
2021-04-28 21:53:59 +02:00
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
pietervdvn 2bf6bac994 Only show woonerf-explantion on living-streets 2021-04-25 22:16:11 +02:00
pietervdvn 6b9d0162eb Speelplekken style tweaks 2021-04-25 16:01:33 +02:00
pietervdvn 0aad17e63c Add living_street explanation, tweaked zoom levels 2021-04-25 13:22:50 +02:00
pietervdvn 3e3da25edb Small fixes 2021-04-23 17:22:01 +02:00
pietervdvn 4d5a786e10 Add more artwork 2021-04-23 16:50:57 +02:00
pietervdvn b2213751c3 Add some more missing translations, small tweaks to scripts 2021-04-23 13:56:16 +02:00
pietervdvn 9fc8a7136f Add license info, add some missing translations 2021-04-23 13:07:50 +02:00
pietervdvn 20386b7c0b Styling tweaks for speelplekken theme 2021-04-23 12:59:09 +02:00
pietervdvn 0dec1d0f75 Refactoring of metatagging and extrafunctions to splice out the relation memberships, add calculatedTags and metatags into cache 2021-04-22 13:30:00 +02:00
pietervdvn 0153d4d262 Merge master 2021-04-22 03:54:14 +02:00
pietervdvn 8cc061c68f Small tweaks to themes 2021-04-21 17:42:28 +02:00
Win Olario 8de1662be1
Update bike_repair_station.json
Minor corrections to improve English sentence phrasings.
2021-04-21 14:20:46 +08:00
pietervdvn 0d637131fb Unpacking some regexes for more accurate taginfo data 2021-04-20 11:04:22 +02:00
pietervdvn ce9b0eabb1 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
pietervdvn b6b22526dd Automatically place the label below the icon 2021-04-11 00:09:19 +02:00
pietervdvn 12b92d286b Refactoring of labels, better exposure 2021-04-10 23:53:13 +02:00
pietervdvn 2ad72ae346 Merge develop 2021-04-10 16:12:40 +02:00
pietervdvn 244bbebb0b Merge license info files together 2021-04-10 13:57:16 +02:00
pietervdvn febc455216 Small rewriting of some licenses 2021-04-10 03:58:54 +02:00
pietervdvn f10e7f008f Add more licenses, fix themes as per validation rules 2021-04-10 03:19:26 +02:00
pietervdvn 954a948cf3 More license info 2021-04-10 01:18:17 +02:00
pietervdvn 5df2bedcaf Removed todo's 2021-04-09 03:03:23 +02:00
pietervdvn a16745d0d1 Add more license information 2021-04-09 02:56:48 +02:00
pietervdvn f11930892e More attribution information 2021-04-09 00:19:32 +02:00
pietervdvn 39711373cd Small improvement in preset layout 2021-04-08 13:34:35 +02:00
pietervdvn 2aad1e1577 Got usage confirmation in email 2021-04-08 13:34:11 +02:00
pietervdvn d5d519abd9 Fix trailing comma 2021-04-07 22:03:38 +02:00
pietervdvn e3d6798db9 Merge branch 'master' of github.com:pietervdvn/MapComplete 2021-04-07 22:00:31 +02:00
pietervdvn d907ab5974 More license info 2021-04-07 22:00:14 +02:00
pietervdvn f8ccccc759 Fix rendering of camera:mount 2021-04-07 21:59:55 +02:00
pietervdvn 65862e5ba7 Add license info 2021-04-07 20:29:23 +02:00
pietervdvn 1a2714c6ff Small fixes to the title of a bike shop 2021-04-07 20:27:36 +02:00
Joost 97fc6b1046
fixed spelling 2021-04-07 10:29:06 +02:00
pietervdvn b6401e4ca1 Fix issue in nature reserves title 2021-04-06 19:59:49 +02:00
pietervdvn 4d5c250f8f Add HTML rendering options to icons 2021-04-06 18:17:07 +02:00
pietervdvn e47accbab1 Fix small issue: wrong format for addExtraTags in some layers 2021-03-31 15:50:29 +02:00
pietervdvn a875e2f767 Bump version number 2021-03-31 11:39:56 +02:00
pietervdvn fc43447622 Fix email question 2021-03-30 16:31:51 +02:00
pietervdvn 13d64f1c89 Bump latlon2country due to fixed bug; fix typo 2021-03-30 16:04:36 +02:00
pietervdvn 89033eedfe Add dutch translation 2021-03-29 18:07:22 +02:00
pietervdvn 86ecbbfc8f Small rewording 2021-03-29 13:59:49 +02:00
pietervdvn 15a6794e59 Move 'asChanges' into tagsFilter; add 'survey:date' option with automatic date to benches 2021-03-29 02:31:08 +02:00
pietervdvn fa5b92e6e1 Add link to nearby drinking water points with some fancy calculated tag magic 2021-03-29 02:05:11 +02:00
pietervdvn fa238092bc Add opening hours to playgrounds and pitches 2021-03-26 00:14:17 +01:00
pietervdvn 1b1ec9f15d Add switch to hide certain features, cleanup of code 2021-03-25 15:19:44 +01:00
pietervdvn f124d9ded7 Add custom javascript snippets to calculate tags 2021-03-24 01:25:57 +01:00