Commit Graph

48 Commits

Author SHA1 Message Date
Bryan Housel 78d2d86ff7 Add context.asset for building asset filenames, use it for traffico
We were using assetMap/assetPath but only for images, and it was broken anyway
(fixes #3011)
2016-03-02 23:06:33 -05:00
Bryan Housel 0a238dbfcc Load traffico stylesheet dynamically 2016-02-17 12:03:51 -05:00
Bryan Housel 7d0d7e0309 Avoid passing context to mapillary service 2016-02-16 15:54:14 -05:00
Bryan Housel 5957adb67d Dynamically check for existence of Mapillary service
This allows us to
1. enable specific parts of Mapillary only for certain browsers
2. remove the Mapillary service completely if desired (closes #2722)

To remove Mapillary, just set `iD.services.mapillary = null`
or remove the <script> tag that loads mapillary.js.
2016-02-15 16:16:44 -05:00
Bryan Housel ff5139fc58 Position Mapillary thumbnail on opposite side of map from marker
(closes #2775)
2016-02-14 00:23:18 -05:00
Bryan Housel 272924140c Partition viewport into regions and cull visible mapillary data
This is awesome because it allows mappers to see a subset of the data
at low zoom, but they get more of it as they zoom in.
2016-02-13 13:31:01 -05:00
Bryan Housel ab6a81e344 Move rtrees to Mapillary service, DRY code, set minZoom to 12 2016-02-11 14:09:18 -05:00
Bryan Housel bed73a78e3 Fetch all paginated Mapillary results, cleanup thumbnail selection 2016-02-10 01:05:36 -05:00
Bryan Housel 3facc28928 Improve layer transitions, debounce redraws, other goodness 2016-02-09 17:19:06 -05:00
Bryan Housel 9777906711 Cleanup MapillarySignLayer, Mapillary service 2016-02-09 11:57:39 -05:00
Bryan Housel a62f41b611 Cleanup MapillaryImageryLayer, Mapillary service 2016-02-08 23:46:26 -05:00
Bryan Housel c50a290cd1 Add iD.geo.Extent#rectangle 2016-02-08 17:15:30 -05:00
Bryan Housel caf464e3d3 Fetch mapillary data in tiles and cache 2016-02-08 17:14:46 -05:00
Bryan Housel f173441fe3 WIP: Mapillary service 2016-02-08 15:46:37 -05:00
Bryan Housel a083ae3001 Call service reset functions from iD.flush()
Also fix misspelling nominatum -> nominatim
2016-02-08 12:02:57 -05:00
Bryan Housel 3e65156754 Refactor services 2016-02-08 10:31:34 -05:00
Bryan Housel 0720b03f66 In Taginfo results sort keys w ':' below keys w/o ':' (closes #2376) 2015-12-20 01:12:31 -05:00
Bryan Housel b892b8c156 Adjust to new taginfo wiki_pages API call (closes #2844)
Also decouple tag_reference.js from taginfo.js service
(no need to have special callback semantics just to retry the call w/o value)
2015-12-02 11:44:00 -05:00
Bryan Housel c592acb759 Improve autocompletion for raw tag editor (closes #2748)
* Don't shorten the user's query
* Drop pouplar key threshold from 10000 to 5000
* Always show key if it has a wiki page (`d.in_wiki`)
2015-09-27 22:39:41 -04:00
M1dgard 41fd5e07d5 Correct coding style 2015-09-08 16:19:55 +02:00
M1dgard 9248ad7d5b Make raw tag editor show docs for key=value (closes #2754)
instead of just key.

* Pass the value to iD.ui.TagReference in the `context` function of iD.ui.RawTagEditor
* Let iD.taginfo query the docs for the key when its callback returns false.
* Let the callback function defined inside iD.ui.TagReference return false when both of these are met:
  * it isn't happy with the docs results AND
  * it was called with its softfail argument set to true.
2015-09-08 12:04:19 +02:00
John Firebaugh 94bc5b0c3d Don't include geometry filter for taginfo keys query (#2333) 2014-08-26 09:46:29 -07:00
Christian Schwarz 16a2449f0a Use https to access nominatim (fixes #2281) 2014-07-10 08:36:40 +02:00
Christian Schwarz 13c1711d68 Switched to Nominatim api for now 2014-06-09 20:22:56 +02:00
Christian Schwarz b8ec19356f Updated country code endpoint 2014-06-05 21:32:14 +02:00
Christian Schwarz 49eae8e389 Switched to a custom country code service 2014-06-05 20:30:12 +02:00
John Firebaugh 69960d75bd Use https where supported
Refs #2129
2014-02-19 09:40:22 -08:00
John Firebaugh 5f7872ba27 Bump taginfo result count to 25 2013-11-19 12:24:29 -08:00
Minh Nguyễn 77c7091cf2 Show relation documentation for relation presets
See http://taginfo.openstreetmap.org/taginfo/apidoc#api_4_relation_wiki_pages

Fixes #1862.
2013-09-30 10:35:00 -07:00
John Firebaugh 6dc3aa269d Include low-frequency tag values if they have a wiki entry 2013-08-10 10:56:44 -07:00
John Firebaugh 67a194f35f Fix taginfo caching 2013-05-26 21:30:36 -07:00
John Firebaugh 09c7a7833c Fix #1433 2013-05-07 19:25:18 -07:00
Tom MacWright 856464cb77 Minor jshint fix 2013-04-22 15:38:41 -04:00
Ansis Brammanis 6636d9ace4 fill in localizations using wikipedia
If a feature has a wikipedia tag, then all
translated page titles are fetched. If a user
starts adding a localized name for a language with
an available translation, that translation gets
filled in automatically.
2013-04-16 17:43:39 -04:00
Ansis Brammanis e82df13a28 wikipedia input field 2013-04-01 15:55:37 -04:00
Tom MacWright ba45582e3c Removing unused arguments 2013-02-27 17:30:05 -05:00
Ansis Brammanis 96c60311ad Add preset descriptions via taginfo 2013-02-27 12:04:05 -05:00
Ansis Brammanis a32858caa5 Only debounce taginfo for taglist autocompletion 2013-02-26 12:39:35 -05:00
Ansis Brammanis eb1113f058 Remove original taginfo debouce
and shorten key/value queries to 3 chars to prevent
unnecessary requests. Assumption is that 3 chars is
specific enough
2013-02-25 16:16:26 -05:00
Ansis Brammanis 24ae1ecd63 caching and debouncing at the taginfo level 2013-02-25 15:39:00 -05:00
Ansis Brammanis 95e6b840ee Fix key reference 2013-02-13 13:14:57 -05:00
Tom MacWright e5ad28feb7 JShint fixups 2013-02-04 12:10:23 -05:00
Brandon Liu 48d93f2f38 tag autocomplete can filter keys by element type. 2013-01-16 23:20:56 -08:00
Tom MacWright ef1af7a731 Only show tags that appear in greater than a percentage of cases. 2013-01-16 14:51:34 -05:00
Ansis Brammanis 5cfbff3a61 remove wiki.js 2013-01-10 13:35:58 -05:00
Ansis Brammanis b9cd9193c3 update to taginfo api v4 2013-01-10 13:25:01 -05:00
Tom MacWright 3b5f6dd8bd Support images from the wiki, adds d3.jsonp extension. 2013-01-09 11:31:53 -05:00
Tom MacWright a293691643 Move taginfo into service 2013-01-09 10:29:42 -05:00