Commit Graph

598 Commits

Author SHA1 Message Date
Noenandre
f3bf7dbf4d Reorder execution of init.
Set "on" binding before awaiting cache reset.
Set "wfslayers" to a empty map
immediately on reset.
2023-07-23 14:16:19 +02:00
Noenandre
4d44eedb3d Too set autoLoad to false when adding a scene,
seems too fix "Uncaught TypeError: Cannot set properties of undefined".
2023-07-23 00:37:27 +02:00
Noenandre
ddc9c6c674 Remove a global module variable "_availableLayers"; move information to cache.
Add new test "fetches available layers".
2023-03-25 17:27:41 +01:00
Noenandre
508c4d1e37 Split a promise into two. 2023-03-15 18:16:21 +01:00
Noenandre
c7c130dae1 Use nullish coalescing operator where it makes sense. 2023-03-15 18:15:32 +01:00
Noenandre
a2a1fdc58a Tests for service/vegbilder is as comprehensive as similar providers. 2023-03-15 18:13:50 +01:00
Noenandre
4c6f3621f2 Use last calculated missing heading for null vectors. 2023-03-09 16:45:49 +01:00
Noenandre
2d74e4fde5 Small bugfix. 2023-03-09 16:39:06 +01:00
Noenandre
e33279bb4a Create a new zoom behaviour when the image size potentially change. 2023-03-09 16:38:02 +01:00
Noenandre
fcbdee0aed Attempt to fix plane photoviewer. 2023-03-06 13:29:44 +01:00
Noenandre
c824fe1937 Create sequences for each (wfs)layer instead of for all points at once. Rearrange cache. 2023-03-04 14:04:02 +01:00
Noenandre
15f4438fad More info and localization in attribution bar. 2023-03-03 19:24:33 +01:00
Noenandre
255c80d341 Test for init and reset methods on service.
Bugfix for reset.
Adjusted expectation of number of svg layers.
2023-03-03 16:43:54 +01:00
Noenandre
9a7f473f20 Removed a variable, renamed a property. 2023-03-03 12:39:34 +01:00
Noenandre
ab2985d985 Fix zoom for plane photos. TODO: set translateExtent correctly. 2023-03-03 12:36:29 +01:00
Noenandre
58cceb03c2 Split concern for panoramic and flat photos to own module. 2023-03-03 01:29:55 +01:00
Noenandre
75dba4b6c7 Filter sequences too. 2023-02-22 21:30:55 +01:00
Noenandre
dbf8b9cec6 Estimate image direction (azimuth) if missing. 2023-02-22 14:33:38 +01:00
Noenandre
b8eb110a8f Order sequences by time, primarily, and not linear reference. 2023-02-21 23:22:47 +01:00
Noenandre
98975e064b Implemented image filtering. 2023-02-14 14:31:35 +01:00
Noenandre
990cab5856 Fetch available WFS image layers from OWS server. Use maps in cache, instead of objects. 2023-02-14 12:40:34 +01:00
Noenandre
5522338716 Rename pannellum-streetside dist folder to pannellum, since Pannellum isn't used by just Bing Streetside anymore.
TODO: Pannellum is loaded twice.
2023-02-14 12:25:43 +01:00
Noenandre
a2c56b7d4f Initial work for new street level photo provider "Vegbilder" from the Norwegian Public Roads Administration. 2023-02-14 12:15:55 +01:00
Martin Raifer
41aa127d23 reduce use of parseFloat
as it silently strips non-numeric suffixes (e.g. a value of "123 foo" is transformed into a numeric value of 123 by `parseFloat`, which is typically not what we desire)
2022-11-24 19:39:15 +01:00
Martin Raifer
a6be05966b improve comboboxes: (#9344)
* pressing return/enter doesn't deselect the entity anymore
* predefined ("static") field options are always listed in the combobox dropdown, even if taginfo doesn't include them (because of low usage)
* (raw) tag values can also be entered for localized strings
* static localized strings can be used before taginfo response is received (useful when taginfo is slow or unavailable)
* fixes some bugs which can be triggered when taginfo is slow
* fixes a bug where the autocomplete dropdown doesn't work properly when tags have "few" values
* multiCombo fields can be case-sensitive now
2022-11-08 12:09:06 +01:00
Bryan Housel
2b2a71f597 Don't pre-resolve and index complex locationSets into GeoJSON.
This was taking a lot of time at app startup.

Instad now we resolve and index only the include and exclude parts.
We can still determine the valid locationSets at runtime in `locationSetsAt()`
by checking the `_locationIncludedIn` and `_locationExcludedIn` caches.

This also upgrades the locationManger to an ES6 class.

This also includes some hacky code in nsi.js so that the NSI will continue to work.
The NSI matcher can build its own location index, but it doesn't need to do this.
We monkeypatch a few of the matcher collections to work with the new LocationManager.
2022-10-28 10:49:01 -04:00
Martin Raifer
c8a3cf154b make more cdn's and API urls/settings configurable
* CDNs for OCI, NSI, etc.
* OSM API (URL and oauth API settings)
* taginfo API
* nominatim API
2022-10-14 19:19:29 +02:00
Martin Raifer
a2cacaaf24 Don't auto-suggest undocumented tag values which have fewer than 100 uses
* previously, this check was based on the "fraction" of the respective tag value, which excluded more values for common tag keys, but fewer for less common ones.
* this sets a limit of 100 uses for undocumented tags (key=value pairs)
* tags with a wiki page are always allowed
* this harmonizes the heuristic of which tags to show between preset fields and the raw tag editor (previously, there was an additional `count > 10` filter present in combo fields, which is now uncessary)

closes #9227
2022-08-01 19:10:18 +02:00
Martin Raifer
1efdcb60ba update osmose service:
* change API requests to use `.geojson` ending
* drop issue type 8360-1, which doesn't seem top be supported anymore

fixes #9208
2022-07-21 11:47:49 +02:00
Kyℓe Hensel
a4ebc389e1 no auto complete for the via tag (#9140) 2022-06-06 16:54:08 +02:00
Martin Raifer
280acfa661 Replace RapiD credentials with iD credentials 2022-06-02 14:46:11 +02:00
Bryan Housel
34a2af0330 Give user the opportunity to switch users when logging out
OAuth2's idea of "logout" is just to get rid of the bearer token.
If we try to "login" again, it will just grab the token again.
What a user probably _really_ expects is to logout of OSM so that they can switch users.
2022-06-02 13:29:41 +02:00
Bryan Housel
6058f89460 Upgrade to osm-auth v2 which uses OAuth2 to connect to OSM API 2022-06-02 13:07:50 +02:00
Martin Raifer
d7cdab7f19 bump 'marked' to v4
closes #8952

see https://github.com/markedjs/marked/releases/tag/v4.0.0
2022-02-04 17:22:22 +01:00
Martin Raifer
6c2f9a8f7d fix rendering of html of improveOSM issues 2022-02-02 18:55:33 +01:00
Martin Raifer
f990d5ac87 fix rendering of html of keepright issues 2022-02-02 18:55:33 +01:00
Martin Raifer
fe4f5c9548 add "cai_scale" to tags with upper case values
fixes #8706
2021-12-14 15:53:34 +01:00
Martin Raifer
344a903170 Merge branch 'nsi_primary_match' into develop 2021-11-30 13:16:58 +01:00
Bryan Housel
3b3f80f690 Improve the checking of results from the NSI matcher..
(fixes: https://github.com/osmlab/name-suggestion-index/issues/5693)

Previously the code would accept the first useful match, however this match
might be an "alternate" match.  Now we keep iterating until we find a "primary"
match.

This bug could cause the validator to suggest upgrading well-tagged features to
a less wanted feature type.  For example a "Tesla Supercharger" would flip to
a "Tesla Destination Charger" if it had "Tesla" anywhere in its list of tags
(because `short_name=Tesla` is an "alternate" match for both destination
chargers and super chargers)
2021-11-29 16:49:36 -05:00
Martin Raifer
9f3f8e1366 rename method 2021-11-29 19:26:18 +01:00
Martin Raifer
d78c357588 replace raw html injection of localized texts
by using d3 to insert the localized text spans directly into the DOM
2021-11-26 18:51:45 +01:00
Martin Raifer
040257fd44 replace unnecessary setting of raw "html" with "text" 2021-11-18 18:53:33 +01:00
Minh Nguyễn
3956b4415f Escape user name in profile URL 2021-11-17 18:18:08 -08:00
Martin Raifer
25d4ff100f rename all openstreetcam references to kartaview
closes #8807
2021-11-16 17:42:53 +01:00
Milos Brzakovic
021107cb81 Merge pull request #8642 from openstreetmap/testing_data
Test improvements
2021-09-28 11:08:31 +02:00
Milos Brzakovic
a00a9162e7 Merge branch 'develop' into tag_as_not 2021-09-27 19:03:46 +02:00
Bryan Housel
bb84962e5d Only insert sources into the fileMap if not already there
This allows us to setup the fileMap correctly for testing so
that it never tries to fetch assets from the CDN.
2021-08-16 13:28:55 -04:00
Bryan Housel
52e8555a8f Add a validator fix option to tag as not: a matched item
(re: #6577)
2021-08-06 12:26:19 -04:00
Bryan Housel
0f913113c7 Match a 'route_master' as if it were a 'route'
This code just treats `type=route_master` relations as if they were `type=route`
so they will match the transit networks in NSI.

(closes https://github.com/osmlab/name-suggestion-index/issues/5184)
2021-08-05 22:05:11 -04:00
Bryan Housel
15ee63e875 Improve code for keeping only interesting key/value pairs
Before it was not actually checking that the osmvalue was in the vmap,
so we were testing a bunch of pairs like `highway/crossing` and
`highway/residential` that would never match a NSI category.
2021-08-05 16:59:07 -04:00