Bryan Housel
8d711981bf
Change stars from integer field to combo, support capital 'S'
...
(closes #5216 )
2018-08-12 11:23:38 -04:00
Bryan Housel
930e865b42
Attempt to prevent users from uploading duplicate changes
...
(closes #5200 )
This removes a users changes stored in localStorage if they try to close
iD while an upload is in progress. It prevents the possiblity that the
changeset is eventually accepted and closed, but the user can be prompted
to restore those changes the next time they start iD.
2018-08-11 19:15:18 -04:00
Bryan Housel
5d9fc33e24
Simplify osm.js postNoteUpload/update
2018-07-24 16:22:37 -04:00
Bryan Housel
0552a90a9f
Remove category field - it's not an osm tag
2018-07-24 14:58:04 -04:00
Bryan Housel
89ad643977
Let new note generate its own id, instead of using -1
...
Also stringify the note id (because existing notes from OSM are this way)
Also make sure comments is initialized as an Array not an Object
Also clarify some of the tests
2018-07-24 14:11:08 -04:00
Thomas Hervey
e1cb25d824
merge from 'master'
2018-07-23 18:24:02 -04:00
Bryan Housel
d11b1e6192
Merge branch 'feat-mapillary-bearing' of https://github.com/mapillary/iD into mapillary-feat-mapillary-bearing
2018-07-23 14:35:48 -04:00
Bryan Housel
2fa593421f
Rename scaleExtent to zoomExtent, slightly simplify getTiles()
2018-07-22 01:15:44 -04:00
Bryan Housel
8811933009
Split up loadTiles and loadNotes code
...
Code is similar but different enough that I'd rather have 2 separate
functions rather than a single function with a bunch of ifs
2018-07-21 22:31:04 -04:00
Bryan Housel
7be9439c35
Use geoScaleToZoom to calculate zoom in Mapillary, OpenStreetCam
2018-07-21 21:59:35 -04:00
Bryan Housel
c0b77d8226
remove unneeded dimensions argument (projection clipExtent has it)
2018-07-21 21:44:14 -04:00
Thomas Hervey
baad5f0cc5
added tests for osm/note
2018-07-21 21:44:07 -04:00
Bryan Housel
cd3d576276
rename geoTile -> tiler
2018-07-21 21:27:44 -04:00
Thomas Hervey
c3fe1fedd9
updated categories, added category to note service
2018-07-21 21:09:17 -04:00
Thomas Hervey
b91fa2841b
merged from 'master'
2018-07-21 12:12:36 -04:00
Bryan Housel
02713e48fb
Move cache management out of tiler, it's responsibilty of service
...
Also remove some unused code and eslint warnings
2018-07-21 11:11:39 -04:00
Bryan Housel
d1fe81b905
rename utilTile -> utilTiler
2018-07-21 10:07:56 -04:00
Bryan Housel
e4d829ec06
Have the tiler return filtered results - re: skipNullIsland
2018-07-21 10:03:40 -04:00
Thomas Hervey
06a410107b
cleaned up merge relics and comments
2018-07-20 23:31:49 -04:00
Thomas Hervey
1d61355d08
added service for new note
2018-07-20 22:19:57 -04:00
Thomas Hervey
bf9b19359a
WIP drag note
2018-07-20 21:41:44 -04:00
Thomas Hervey
2cde7843f2
merged branch 'master' into drag-note
2018-07-20 14:30:21 -04:00
Thomas Hervey
386d375b7a
fix excessive note tiling and network request
2018-07-19 10:51:39 -04:00
Matias Volpe
aac394a487
Update directional indicator based off of current bearing in Mapillary JS
2018-07-19 08:45:28 -03:00
Thomas Hervey
c563abaf7a
pass dimensions to tile
2018-07-18 15:49:04 -04:00
Thomas Hervey
60f66b73e9
fixed missing declarations. TODO: fix tests
2018-07-18 15:16:52 -04:00
Thomas Hervey
b017616993
added new note icon and completed sidebar
2018-07-18 09:38:59 -04:00
Thomas Hervey
5bf3f7ed3e
Merge branch 'master' into refactor-loadTiles
2018-07-18 07:26:56 -04:00
Bryan Housel
e221dcae58
Dispatch new dimensions with photoview resize, resize all layers
...
-Adds ability to resize OpenStreetCam and Bing Streetside layers
-Also slightly increases the width of the resize handles
-Also limits max resize so it won't go larger than the map
2018-07-17 17:06:59 -04:00
Bryan Housel
b9a6996048
Merge branch 'feat-photoviewer-resize' of https://github.com/mapillary/iD into mapillary-feat-photoviewer-resize
2018-07-17 12:38:52 -04:00
Bryan Housel
73d0f30453
Merge branch 'notes'
2018-07-16 16:59:35 -04:00
Thomas Hervey
7ad765d408
added simple tests for loading and retrieving notes
2018-07-16 10:54:40 -04:00
Thomas Hervey
d4b1622667
moved getTiles and filtering to utils
2018-07-14 19:15:25 -04:00
Bryan Housel
1a106f5253
Make uiViewOnOSM work for notes too, add it to note_editor footer
2018-07-13 15:55:58 -04:00
Bryan Housel
33ef9a4357
Wrap callbacks with common checks for connection id and auth failure
...
This eliminates a lot of the copy-paste code in every callback.
2018-07-13 15:14:20 -04:00
Bryan Housel
f825845b79
Can't skip seen on the userDetails call
...
This call really does need for a result to be passed to the callback
2018-07-13 00:31:04 -04:00
Bryan Housel
775b47272d
Remove from inflight cache before doing anything in done
2018-07-12 23:56:03 -04:00
Bryan Housel
645cc790a3
Add docs about OSM API, finish implementing postNoteUpdate
...
`postNoteUpdate` can hangle status changes and comment additions
(I named it that to be like `putChangeset`)
Also renamed `user` to `loadUser` to be consistent with other calls
2018-07-12 23:46:07 -04:00
Matias Volpe
b617695ad1
Remove OSM iD custom photo attribution to show MJS photo attribution
2018-07-12 17:59:56 -03:00
Bryan Housel
19560ebc90
Properly save and restore caches when entering/leaving the walkthrough
2018-07-12 15:39:04 -04:00
Matias Volpe
836517a9fe
Add ability to resize to PhotoViewer
2018-07-12 09:41:10 -03:00
Bryan Housel
f52f24b517
Add noteOptions, default to 10k note limit and 7 days closed
...
Also bump note tile zoom to z12. There just aren't that many notes,
so this reduces API calls.
2018-07-10 23:28:37 -04:00
Bryan Housel
7423d192d4
Implement multi-fetch get for users from OSM API
...
Eagerly load user details after loading notes
(re: openstreetmap/openstreetmap-website#1921 )
2018-07-10 23:02:37 -04:00
Bryan Housel
cd7cdd95e9
Add "View on Bing Maps" link, cleanup css
...
(closes #5125 )
2018-07-10 02:04:39 -04:00
Bryan Housel
696895fb98
Add forward/backward controls to Streetside viewer
...
re: #5125
There is some cleverness here to search for the best nearby bubble
instead of just relying on the next and previous sequence keys.
2018-07-10 01:10:18 -04:00
Bryan Housel
1395e029d9
Add guard code for if Mapillary viewer could not be initialized
2018-07-09 16:17:09 -04:00
Thomas Hervey
14356cefe2
WIP: toggle note status
2018-07-08 12:50:02 -05:00
Tom Hughes
3819fd6498
Use XHR to access wikidata API instead of JSONP
2018-07-04 17:05:39 +01:00
Tom Hughes
1ab7cf790e
Use XHR to access wikipedia API instead of JSONP
2018-07-04 17:05:26 +01:00
Bryan Housel
6f1dc12f99
Add user method to osm service, _userCache, user parser
2018-07-04 03:20:16 -04:00