Commit Graph

14740 Commits

Author SHA1 Message Date
Bryan Housel 25bf950458 Upgrade to osm-community-index (oci) v4
The main differences here is:
- oci now supports default strings and exports a "resolveStrings" function
- this makes linkifying any urls embedded in descriptions a bit more complicated
  because urls and descriptions might need resolution, we can't use iD's normal
  t() function to do the token replacement like before
2021-04-29 17:53:53 -04:00
Milos Brzakovic (E-Search) 92a9ef2061 Move CrossEditableZoom event firing.
It should happen after projection is transformed.
2021-04-27 14:10:13 +02:00
Bryan Housel 2651e7ddc9 In move/rotate cancel, check whether graph has changed before popping
(closes #8441)
2021-04-02 09:48:41 -04:00
Bryan Housel 0d79e8ee02 Upgraded to location-conflation v0.8.0 2021-03-28 12:27:40 -04:00
Bryan Housel add11432d3 More sophisticated name/branch splitting
(re: https://github.com/openstreetmap/iD/pull/8305#issuecomment-805454952)
2021-03-24 18:03:37 -04:00
Bryan Housel 9537911b68 Add guard code in locationsAt, for testing entities with invalid loc 2021-03-23 14:24:01 -04:00
Bryan Housel ec787f81ad Location-aware preset matching 2021-03-23 12:39:14 -04:00
Bryan Housel 55d9da9480 Improve logic for matching name fragments like TUI ReiseCenter
(re: https://github.com/osmlab/name-suggestion-index/issues/4543#issuecomment-799732746)
2021-03-22 20:23:22 -04:00
Bryan Housel 77e7620ab8 Switch to published NSI v5 🎉 2021-03-22 14:39:58 -04:00
Quincy Morgan 1ee45ee1f0 Add 2.19.6 changelog 2021-03-18 13:43:30 -04:00
Quincy Morgan 561709d92a Merge pull request #8398 from openstreetmap/event_fixes
Pass d3_event to click handler
2021-03-18 13:40:28 -04:00
Quincy Morgan 620a03edb3 Merge pull request #8396 from openstreetmap/dependabot/npm_and_yarn/d3-6.6.0
Bump d3 from 6.5.0 to 6.6.0
2021-03-18 13:40:00 -04:00
Quincy Morgan 0b3b1b43f1 Merge pull request #8412 from openstreetmap/dependabot/npm_and_yarn/rollup-2.41.5
Bump rollup from 2.40.0 to 2.41.5
2021-03-18 13:39:26 -04:00
dependabot[bot] 7a417b4223 Bump rollup from 2.40.0 to 2.41.5
Bumps [rollup](https://github.com/rollup/rollup) from 2.40.0 to 2.41.5.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.40.0...v2.41.5)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-18 05:27:54 +00:00
Bryan Housel f5b6024988 Revise name/branch splitting code
This now breaks the name into fragments and reruns the fragments against the NSi matcher
rather than using flaky regular expressions. Has a few advantages:
(re: https://github.com/osmlab/name-suggestion-index/issues/4543#issuecomment-797577999)
2021-03-12 15:03:50 -05:00
Bryan Housel 3cf5f69082 Allow missing locationSetID on presets, fields, categories
This simplifies the code a bit, just treat it as worldwide if missing
2021-03-12 12:27:50 -05:00
Bryan Housel f95e7db8c9 Create the categories like the presets
The lack of locationSet was causing them to not show up, which indirectly
broke the tutorial at the step where user needs to pick the road category.
2021-03-12 12:04:52 -05:00
Bryan Housel a0b7f9f99f Pass d3_event to click handler 2021-03-12 09:55:38 -05:00
Bryan Housel d282140999 If we match a generic name, stop looking
This is for "nextbike"
(re: https://github.com/osmlab/name-suggestion-index/issues/4543#issuecomment-796126041)
2021-03-11 17:51:09 -05:00
Bryan Housel 98a622f41a Make sure a name is either primary or alternate (can't be both) 2021-03-11 17:46:09 -05:00
Bryan Housel 2e9c463837 update imagery 2021-03-11 17:01:52 -05:00
Bryan Housel 19a8fd16d2 Be smarter about identifying what tree an osm feature might be in
Needed this after I added `highway=bus_stop` to the transit tree
2021-03-11 16:28:26 -05:00
dependabot[bot] e431def3c6 Bump d3 from 6.5.0 to 6.6.0
Bumps [d3](https://github.com/d3/d3) from 6.5.0 to 6.6.0.
- [Release notes](https://github.com/d3/d3/releases)
- [Changelog](https://github.com/d3/d3/blob/master/CHANGES.md)
- [Commits](https://github.com/d3/d3/compare/v6.5.0...v6.6.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-11 05:03:42 +00:00
Bryan Housel 9f30ebf551 Adjust verbose utilDisplayLabel call, use for more validation messages
(re: https://github.com/osmlab/name-suggestion-index/issues/4543#issuecomment-794527259)
2021-03-10 10:30:57 -05:00
Bryan Housel 2b7adf89fa Remember user's preference for expanding issue-info section
This shows the tag diff, and other helpful information about the detected issues.
It is expanded by default now
(closes #6408, closes #8143)
2021-03-08 15:10:30 -05:00
Bryan Housel c3e9e8c8ff Support a more verbose format for listing issues
Includes the feature type in the label
(re: https://github.com/osmlab/name-suggestion-index/issues/4543#issuecomment-791919134)
2021-03-08 12:15:17 -05:00
Bryan Housel a827e13a6d Be less aggressive about removing toplevel tags
(re: https://github.com/openstreetmap/iD/pull/8305#issuecomment-792871448)
2021-03-08 11:36:41 -05:00
Bryan Housel a656106373 Include nsi_dissolved in test setup 2021-03-05 11:59:36 -05:00
Bryan Housel 7a82dba825 Only match alternate amenity/yes if it actually is tagged that way 2021-03-05 10:59:15 -05:00
Bryan Housel 3f8faec413 Improvements to name gathering
- Actually bail out properly if namelike values contain semicolon ';'
- Prioritize the canonical tags like `brand:wikidata`, `operator:wikidata`
- Don't insert a name into 'alternate' set if it's already in 'primary' set
2021-03-05 10:40:06 -05:00
Bryan Housel 1b1bf8eed2 Don't offer upgrades to dissolved items 2021-03-05 10:04:29 -05:00
Bryan Housel bbed217625 For some names, consider splitting name into name and branch.. 2021-03-05 09:54:47 -05:00
Quincy Morgan 72d56e54e8 Merge pull request #8375 from openstreetmap/dependabot/npm_and_yarn/uglify-js-3.13.0
Bump uglify-js from 3.12.8 to 3.13.0
2021-03-03 14:32:04 -05:00
Bryan Housel dc2267866e Unsquish the issue messages by adding more side padding 2021-03-03 13:26:35 -05:00
Bryan Housel 42dccbf123 When displaying a preset image, use display:none for siblings
visibility:hidden still preserves space, which would uncenter the image in some cases
2021-03-03 13:18:56 -05:00
Bryan Housel 1f6a2121c4 Move all of NSI into a service, rewrite matcher code 2021-03-03 12:04:37 -05:00
dependabot[bot] 849cc825b2 Bump uglify-js from 3.12.8 to 3.13.0
Bumps [uglify-js](https://github.com/mishoo/UglifyJS) from 3.12.8 to 3.13.0.
- [Release notes](https://github.com/mishoo/UglifyJS/releases)
- [Commits](https://github.com/mishoo/UglifyJS/compare/v3.12.8...v3.13.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-02 05:21:50 +00:00
Quincy Morgan 8a9b4d5321 Merge pull request #8371 from openstreetmap/dependabot/npm_and_yarn/rollup-2.40.0
Bump rollup from 2.39.1 to 2.40.0
2021-03-01 10:18:27 -05:00
Nikola Pleša 6cd17713fa Use Mapillary vector tiles for images, sequences and map features 2021-03-01 10:19:41 +01:00
dependabot[bot] 8dd3fe230f Bump rollup from 2.39.1 to 2.40.0
Bumps [rollup](https://github.com/rollup/rollup) from 2.39.1 to 2.40.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.39.1...v2.40.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 05:07:55 +00:00
Josh Lee ac6251cf9e Fix centroid calculation in measurement panel.
Copy/paste of 0a0e2dcf75
2021-02-23 18:11:02 +00:00
Quincy Morgan 4ae7bc9bd5 Update Mapillary.Viewer call for mapillary-js v3 (re: #8245) 2021-02-23 12:27:32 -05:00
Quincy Morgan 8ec754ab54 Merge pull request #8329 from openstreetmap/dependabot/npm_and_yarn/mapillary-js-3.1.0
Bump mapillary-js from 3.0.0 to 3.1.0
2021-02-23 12:14:47 -05:00
dependabot[bot] f2da1de2af Bump mapillary-js from 3.0.0 to 3.1.0
Bumps [mapillary-js](https://github.com/mapillary/mapillary-js) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/mapillary/mapillary-js/releases)
- [Changelog](https://github.com/mapillary/mapillary-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mapillary/mapillary-js/compare/v3.0.0...v3.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-23 17:10:10 +00:00
Quincy Morgan 5fa69938cd Merge pull request #8361 from openstreetmap/dependabot/npm_and_yarn/json-stringify-pretty-compact-3.0.0
Bump json-stringify-pretty-compact from 2.0.0 to 3.0.0
2021-02-23 12:08:44 -05:00
Quincy Morgan 5f276a4bc5 Merge pull request #8346 from openstreetmap/dependabot/npm_and_yarn/marked-2.0.0
Bump marked from 1.2.9 to 2.0.0
2021-02-23 12:08:09 -05:00
dependabot[bot] 3b481874dd Bump json-stringify-pretty-compact from 2.0.0 to 3.0.0
Bumps [json-stringify-pretty-compact](https://github.com/lydell/json-stringify-pretty-compact) from 2.0.0 to 3.0.0.
- [Release notes](https://github.com/lydell/json-stringify-pretty-compact/releases)
- [Changelog](https://github.com/lydell/json-stringify-pretty-compact/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lydell/json-stringify-pretty-compact/compare/v2.0.0...v3.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-23 17:03:26 +00:00
dependabot[bot] 8534d16015 Bump marked from 1.2.9 to 2.0.0
Bumps [marked](https://github.com/markedjs/marked) from 1.2.9 to 2.0.0.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js)
- [Commits](https://github.com/markedjs/marked/compare/v1.2.9...v2.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-23 17:02:38 +00:00
Quincy Morgan c1a63065ee Merge pull request #8355 from openstreetmap/dependabot/npm_and_yarn/rollup/plugin-node-resolve-11.2.0
Bump @rollup/plugin-node-resolve from 11.1.1 to 11.2.0
2021-02-23 12:02:31 -05:00
Quincy Morgan 056a8ca525 Update en.min.json 2021-02-23 11:50:53 -05:00