Commit graph

31 commits

Author SHA1 Message Date
911675c509 Fix build 2021-09-15 12:56:52 +02:00
78d6482c88 Add binoculars theme, auto reformat everything 2021-09-09 00:06:21 +02:00
0ab0d159cc Small tweaks 2021-07-28 15:14:13 +02:00
330930d5d4 Merge develop 2021-07-24 02:32:33 +02:00
17b35e731e Formatting (pre-merge) 2021-07-24 01:59:57 +02:00
45631a921f Update documentation and allow code to be run while caching 2021-07-23 17:18:30 +02:00
42d0071b26 Use canonical rendering in windpowermap 2021-07-13 18:52:02 +02:00
e594511e22 Better trimming of canonical values, no console output if not actually rewriting 2021-07-10 21:03:17 +02:00
fb3e3a040b Fix tests, fix units 2021-07-04 20:36:19 +02:00
8d9a992507 Use addcallbackAndRunD 2021-06-30 15:42:31 +02:00
ac201afb40 Documentation update 2021-06-24 14:03:02 +02:00
62244c02c4 Add erase all option, formatting 2021-06-22 12:13:44 +02:00
966fcda8d1 Add support for units to clean up tags when they enter mapcomplete; add example of this usage in the climbing theme, add climbing theme title icons with length and needed number of carabiners 2021-06-22 03:16:45 +02:00
0012a2f683 First version of unit handling: canonicalizing on input 2021-06-22 00:29:07 +02:00
64ec06bfc8 Fix opening hours input element 2021-06-16 14:23:53 +02:00
8e72b70742 Fix deployment, fix documentation generation, add a small markdown generator 2021-06-15 00:28:59 +02:00
Sebastian Kürten
0aafbdb33a Fix problems in CaculatedTags.md via Typescript sources 2021-05-11 11:47:34 +02:00
6ac8a5373c Better handling of metatags, more robust error handling when calculating tags 2021-05-10 23:51:03 +02:00
a0c1bc2137 OsmObjects can now be used as featureSource, load selected object immediately, zoom to selected object on open; fix #191 2021-05-06 01:33:09 +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
2900bdc784 Documentation improvement and warning cleanup 2021-04-25 16:01:46 +02:00
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
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
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
12afdcab75 Add better relation support 2021-04-18 14:24:30 +02:00
7b47af8978 Add license info, fix non-updating values after reopening popups 2021-04-17 23:36:46 +02:00
bec1998a6d Fix incorrect imports due to refactoring 2021-03-29 02:04:42 +02:00
ad406b5550 Remove legacy: the minOverlapPercentage can now be built with a calculated tag and isShown 2021-03-26 03:24:58 +01:00
1b1ec9f15d Add switch to hide certain features, cleanup of code 2021-03-25 15:19:44 +01:00
0491b52642 Add doc generation 2021-03-24 02:01:04 +01:00
f124d9ded7 Add custom javascript snippets to calculate tags 2021-03-24 01:25:57 +01:00