Commit graph

354 commits

Author SHA1 Message Date
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 1c413cd6cc Remove console.trace 2021-04-26 21:10:34 +02:00
pietervdvn 2900bdc784 Documentation improvement and warning cleanup 2021-04-25 16:01:46 +02:00
pietervdvn 54f01ba554 Add metadata to query, move metatagging of metadata to metatagger, tweaks to the generate caching so that the cached data becomes more stable (and is GIT-friendlier) 2021-04-25 13:25:03 +02:00
pietervdvn d2fa20ee91 Remove console.log, tweaks to zoomlevels 2021-04-23 20:27:01 +02:00
pietervdvn f4dacab9ef Fix multilayer geojson source 2021-04-23 20:09:27 +02:00
pietervdvn 8c1861f98d Do not close the infobox when data is loaded... 2021-04-23 18:16:44 +02:00
pietervdvn 3e3da25edb Small fixes 2021-04-23 17:22:01 +02:00
pietervdvn 127ad9c947 Small tweaks, better handling in case all goes wrong 2021-04-23 16:51:44 +02:00
pietervdvn a4f8559108 Clear authentication cookies if login fails, due to revoked tokens 2021-04-23 15:20:24 +02:00
pietervdvn a3a9590352 Add name to changes feature source 2021-04-23 12:56:56 +02:00
pietervdvn 141d4db028 Add names to feature sources, fix that old, cached geometries get changed when a newer version is loaded 2021-04-23 12:55:38 +02:00
pietervdvn c20e2def5b Load timestamp from geojson 2021-04-22 20:08:03 +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 2da52501a3 Add capability to load tiled geojsons, eventually as overpass-cache 2021-04-22 03:30:46 +02:00
pietervdvn c6b4ba43fb Add feature which loads the selected element from overpass to update the tags to the latest version 2021-04-21 01:26:13 +02:00
pietervdvn d7277838e4 Fix small bug: no new countdown will be started if a countdown is already running 2021-04-21 01:25:00 +02:00
pietervdvn 33ebc6b9c4 Add metadata to continuation 2021-04-21 01:23:28 +02:00
pietervdvn f1443e2f49 Merge master 2021-04-20 12:20:46 +02:00
pietervdvn 05b05a958c Add taginfo project file descriptions 2021-04-19 18:17:26 +02:00
pietervdvn c0fb852d41 Fix length, update docs 2021-04-18 18:23:59 +02:00
pietervdvn 12afdcab75 Add better relation support 2021-04-18 14:24:30 +02:00
pietervdvn 7b47af8978 Add license info, fix non-updating values after reopening popups 2021-04-17 23:36:46 +02:00
pietervdvn 576fd8ff40 Add cache timeout 2021-04-17 15:42:22 +02:00
pietervdvn 9874b7d8c8 Fix loading of compressed themes in the custom generator too 2021-04-11 23:43:23 +02:00
pietervdvn 61377d907b Erase the hash when an element is unselected 2021-04-06 19:41:41 +02:00
pietervdvn 454f30cf3b Add docs on URL-parameters 2021-04-06 18:34:45 +02:00
pietervdvn 4d5c250f8f Add HTML rendering options to icons 2021-04-06 18:17:07 +02:00
pietervdvn 8097486ffe Small fix to mapillary image loading + addition of test 2021-04-06 16:12:44 +02:00
pietervdvn 8c0cae7a8c Merge master 2021-03-29 17:37:58 +02:00
pietervdvn 75f33ee580 -Nuke the localstorage if it is full 2021-03-29 14:10:20 +02:00
pietervdvn 4342b38e9d Formatting and small cleanups 2021-03-29 02:53:06 +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 bec1998a6d Fix incorrect imports due to refactoring 2021-03-29 02:04:42 +02:00
pietervdvn cd1171e678 Add substituting tag, remove some old code 2021-03-29 01:20:06 +02:00
pietervdvn 120832f241 Move tags into subdirectory 2021-03-29 00:41:53 +02:00
pietervdvn c5a43450d3 Remove console.log 2021-03-26 03:39:55 +01:00
pietervdvn 4694cc8e0f Correct caching of image searcher 2021-03-26 03:36:49 +01:00
pietervdvn ac9cca4c51 Fix wikimedia images 2021-03-26 03:33:42 +01:00
pietervdvn ad406b5550 Remove legacy: the minOverlapPercentage can now be built with a calculated tag and isShown 2021-03-26 03:24:58 +01: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 0491b52642 Add doc generation 2021-03-24 02:01:04 +01:00
pietervdvn f124d9ded7 Add custom javascript snippets to calculate tags 2021-03-24 01:25:57 +01:00
pietervdvn d8c1f72857 Split TagsFilter into multiple files 2021-03-22 03:05:08 +01:00
pietervdvn 59d53e5ec5 Fix generation of docs by injecting dependency 2021-03-22 02:45:22 +01:00
pietervdvn 1ffad21c62 Refactoring of tagsFilters, fix conditional 'hideInAnswer' 2021-03-22 02:17:00 +01:00
pietervdvn f176b92a9c Merge branch 'master' into develop 2021-03-22 01:32:47 +01:00
pietervdvn a3e170e157 Disable alidade as it is broken 2021-03-22 01:24:30 +01:00