Commit graph

50 commits

Author SHA1 Message Date
72edc9bdcc General cleanup, improve sidewalk rendering 2021-10-22 02:16:07 +02:00
20fa5028d9 First working version with multi-rendering 2021-10-22 01:42:44 +02:00
a2aa26aafc Fix split way action, add decent tests for them (fix #171), enable split road on cyclestreets theme 2021-10-16 02:54:22 +02:00
5ac035be20 Various small bug fixes 2021-10-15 15:20:08 +02:00
460155dd8b Fix problem with opening-hours: if parse error, apply this correctly 2021-10-14 14:35:04 +02:00
d3550fefbe Add multi-apply box/feature, use it in etymology-theme to apply tags onto all segments of the same street 2021-10-12 02:12:45 +02:00
a38ab81356 Fix metatag _isOpen, fix clustering zoom behaviour 2021-10-11 23:28:51 +02:00
d894b13023 Make metatagging lazy (fix #503), fix null-distances (#504), various other small fixes 2021-10-10 23:38:09 +02:00
65470cbac5 Fix bug where metatagging would not fully calculate in some cases 2021-10-04 00:18:08 +02:00
5bcb879dfe Fix local caching by hiding latlon2country import 2021-10-03 01:57:36 +02:00
4f456e8a7f Better tracking of cached data, only load data if needed 2021-09-30 04:13:23 +02:00
a78d33112b Refactoring: LayoutToUse is a simple value now 2021-09-28 18:00:44 +02:00
38037014b0 Fix bug in bounds calculation for negative lats/lons 2021-09-27 15:38:12 +02:00
be95ad58f8 Merge master 2021-09-26 21:24:42 +02:00
4cb09ba8e7 Drop widths theme 2021-09-26 18:06:38 +02:00
c5e9448720 Add initial clustering per tile, very broken 2021-09-26 17:36:39 +02:00
d5c1ba4cd1 More refactoring, move minimap behind facade 2021-09-21 02:10:42 +02:00
202e3cd677 Fix canonicalization if no units are given 2021-09-17 16:54:12 +02:00
7120af21c1 Fix caching 2021-09-15 13:19:43 +02:00
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