Commit Graph

503 Commits

Author SHA1 Message Date
Quincy Morgan
482d0902ac Fix issues with Wikidata field 2020-09-24 10:27:35 -04:00
Quincy Morgan
bbbf401232 Add en fallback in coreLocalizer instead of utilDetect.browserLocales
Include all preferred and fallback langauges in coreLocalizer.localeCodes even if higher-priority ones have 100% string coverage
Fallback to the user's preferred languages instead of directly to English when querying OSM wikibase documentation and Wikidata (re: #7996)
Add `lang` attribute to tag documentation text loaded from OSM wikibase or Wikidata (re: #7963)
2020-09-23 16:15:34 -04:00
Quincy Morgan
5435082d9c Revert t function to returning the plain string by default
Add `t.html` function for getting the string with the `lang` attribute
2020-09-22 12:03:29 -04:00
Quincy Morgan
32f8274929 Make t function return a span element with a lang attribute unless html: false is specified in the options (re: #7963)
Update `text` functions to `html` to support inserting the `span` elements
Specify `html: false` for various instances where a `span` is not desired, e.g. `placeholder` and `title` attributes
2020-09-15 21:56:22 -04:00
Quincy Morgan
21c86c6d6d Re-add reading of mapillary image from URL (re: #7885, #6398) 2020-09-13 17:09:35 -04:00
Quincy Morgan
9510578107 Merge branch 'mapillary-update' into develop
# Conflicts:
#	modules/services/mapillary.js
#	modules/svg/mapillary_map_features.js
#	modules/svg/mapillary_signs.js
2020-09-13 16:34:25 -04:00
Quincy Morgan
4050940268 Lazy load photo overlay resources (close #7982) 2020-09-13 11:52:37 -04:00
Quincy Morgan
03ca12741f Make imageryBlocklists return regex objects instead of strings
Fix performance bug due to checking background source blocks too often
2020-09-04 10:09:47 -04:00
Quincy Morgan
087122a731 Merge pull request #7932 from til-schneider/patch-1
Improve performance of raw tag editor
2020-09-03 13:45:46 -04:00
Quincy Morgan
a72a2bb860 Hide background sources from the list if they're blocked (close #7905) 2020-09-03 12:30:59 -04:00
Til Schneider
4dabd79702 Move relation type detection to osm_wikibase (#7932) 2020-08-29 11:05:07 +02:00
Peter Newman
4205ca1d07 Fix the seemingly safe spellings found by codespell
Untested, only checked by inspection.

(cherry picked from commit 2c47a11008)
2020-08-10 17:32:37 +01:00
Nikola Plesa
6cda7fc77f fix: remove detections from image when features are turned off 2020-08-06 16:33:40 +02:00
Nikola Plesa
f002df5493 feat: traffic sign highlighting 2020-08-03 14:30:51 +02:00
Nikola Plesa
6d5222ceb4 fix: fix warnings and update detection tags 2020-07-31 16:37:05 +02:00
Nikola Plesa
e87b0b9432 feat: updates for mapillary map features and traffic signs 2020-07-31 14:55:17 +02:00
Quincy Morgan
0e0148b8f2 Fix JS error caused by possible undefined uid of entities returned by OSM API (close #7858)
Add additional safety checks for undefined entity `version` or `changeset`
2020-07-30 15:45:56 -04:00
SilentSpike
00dd8d68c7 Update Osmose API with 0.3 release 2020-07-17 12:15:33 +01:00
Quincy Morgan
09a20bc809 Fix issue where panning the bing streetside photo viewer wouldn't update the bubble cone in the map 2020-07-07 13:52:55 -04:00
Nikola Plesa
944953dbf2 Update Mapillary map_features URL and remove request_data button 2020-07-01 16:50:30 +02:00
Quincy Morgan
8b258d2cbd Load the maximum nodes per way value from the OSM API and add a getter to the service object
Disable the Merge operation if the resultant way would have more than the maximum number of nodes (close #6030)
Simplify some code in operationMerge
2020-06-08 14:38:49 -04:00
Quincy Morgan
bf7b30ace9 Fix unreleased regression where OSM notes were being parsed as JSON and thus not loading (re: #7188) 2020-06-08 13:19:46 -04:00
Quincy Morgan
cee4b0a4da Give several functions more descriptive names 2020-06-08 09:50:13 -04:00
Quincy Morgan
41418e57a5 Fix issues with wikidata field searching and label updating 2020-05-20 11:23:01 -04:00
SilentSpike
24d83926e2 Fix white Osmose icons after changes upload
Prevent those elements of the Osmose service cache from being purged on
reset.

Fixes #7609
2020-05-17 17:41:44 +01:00
Quincy Morgan
95dc16b7a6 Update more mouse events to use pointer events if available (re: #5505) 2020-05-08 16:10:15 -07:00
SilentSpike
cf67684ed5 Fix Osmose details not always showing at first
Issues without a `subtitle` value would silently error when trying to
access the `auto` key of a null value which meant the elements weren't
showing up in the UI straight away.
2020-04-13 16:38:20 +01:00
Quincy Morgan
84a55606ad Show wikidata field search results in the user's language when possible 2020-03-31 13:00:52 -07:00
Quincy Morgan
a1af118f0e Ensure locales and presets are loaded before the UI loads (close #7406)
Consolidate localization behavior and init to a coreLocalizer function and singleton
Explicitly support `en-US` locale
Rename coreData to coreFileFetcher and export a singleton rather than using a property of coreContext
Add `apiConnections` property of coreContext to simplify adding a source switcher
Replace some init functions with re-callable, promise-supporting `ensureLoaded` functions
Make coreContext itself load the UI if a container has been specified at init time
Fix code tests
2020-03-31 12:23:31 -07:00
Quincy Morgan
a792334c8a Don't fetch taginfo values for more name keys (close #7485) 2020-03-29 11:29:29 -07:00
Quincy Morgan
a7ce956e1f Don't use global selectors in street-level photo services (re: #7445) 2020-03-29 11:04:38 -07:00
Quincy Morgan
7e1cf64d0e Namespace DOM ids used in photo viewer (re: #7445) 2020-03-24 13:43:54 -07:00
Quincy Morgan
eed7944a1a Replace various uses of d3_select and d3_selectAll with selection on the container 2020-03-22 12:34:06 -07:00
Quincy Morgan
371bac0aa2 Convert photoviewer from id to class 2020-03-20 14:07:09 -07:00
SilentSpike
6a58dabf42 Update Osmose API path
Should only change one more time after this (coming out of beta).
2020-03-19 21:05:44 +00:00
SilentSpike
81b2a2cd2a Update Osmose detail string access
Now supports localisation, which returns slightly different structure.
2020-03-17 12:40:38 +00:00
Quincy Morgan
207badb1a0 Read object visible state when parsing JSON API response (re: #7188) 2020-03-10 09:35:33 -07:00
Quincy Morgan
52222df75f Switch to JSON endpoints of OSM API for fetching entities (re: #3765) 2020-03-02 15:54:46 -08:00
Quincy Morgan
bf42bce3be Update martinez-polygon-clipping to v0.6.2 (close #7370) 2020-02-26 15:18:16 -08:00
SilentSpike
753ae3bdd2 Use marked for Osmose strings markdown
- More reliable method of handling markdown
- Change external links in the strings within the details code
2020-02-16 22:38:34 +00:00
SilentSpike
05996892df Parse markdown formatting of Osmose subtitles too 2020-02-15 13:04:47 +00:00
SilentSpike
af0e37f7c5 Add "view on osmose" link to UI footer 2020-02-15 11:48:01 +00:00
SilentSpike
d200d0fce2 Use Promise for improveOSM comments 2020-02-14 17:31:10 +00:00
SilentSpike
3ee32776a7 Fix QA error icons
Pass service itself in to QAItem constructor for purpose of fetching
data. Store string as `title` property on the service.
2020-02-12 21:27:38 +00:00
Bryan Housel
a9a1f945f8 Move the qa_data external
- this means that QAItem now asks the service for the icon rather than knowing it directly
2020-02-07 10:06:47 -05:00
Bryan Housel
fe00a40e9a Move the keepRight data extrnal 2020-02-07 09:16:34 -05:00
SilentSpike
f8a4a0b3ad Use d3_json Promise directly for Osmose requests 2020-02-07 11:29:48 +00:00
SilentSpike
8bb2dc7fa6 Return Promise for Osmose string requests 2020-02-07 11:21:33 +00:00
SilentSpike
f86837d637 Fix use of double quotes 2020-02-06 23:12:18 +00:00
SilentSpike
51efd5b714 Update and standardise QA implementations
- ES6ify (now using class syntax to define QAItem objects)
- Fix bug with KeepRight marker rendering not updating properly
- Use `qa-` prefix for the UI element classes to differentiate from iD
validation error related UI element classes
- Move away from "error" where possible in source
- Move away from snake_case naming where possible

Note that some function/method names have been untouched to make life
easier for v3 development. Have added note comments where appropriate.
2020-02-06 23:07:50 +00:00