Commit Graph

1585 Commits

Author SHA1 Message Date
Bryan Housel
46dc44b35b Make the mode buttons dynamic
- show/hide the note button when the notes layer is enabled/disabled
- enable/disable the note button based on notesEditable
2018-07-23 22:21:47 -04:00
Bryan Housel
78fc2f7c27 No longer need to pass dimension to loadTiles 2018-07-23 21:07:28 -04:00
Thomas Hervey
7312d7024b added notes to help ui 2018-07-23 18:26:43 -04:00
Thomas Hervey
e1cb25d824 merge from 'master' 2018-07-23 18:24:02 -04:00
Thomas Hervey
e23ef4ba4a redraw on note drag. TODO: change dispatch call 2018-07-23 15:09:25 -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
119792fd22 Cleanups to Detach Node feature
This commit includes a bunch of minor things:
- change keyboard shortcut to 'E' to not conflict with anything
- move `disabled` check from operation into action and simplify
- use `actionMoveNode` to place the detached node at the mouse cursor
- disable the operation if the node is connected to hidden features
- lots of code simplification
- make the icon more centered
2018-07-23 13:36:34 -04:00
Bryan Housel
94b0affe8c Merge branch '4320' of https://github.com/Psigio/iD into Psigio-4320 2018-07-23 08:44:19 -04:00
Jon D
90bc0b8537 Update to prevent detachment of node when either a via or
location_hint role in a turn restriction.
Update to move any other relation to new node.
2018-07-22 19:35:29 +01:00
Bryan Housel
ac27cbd67d Add support for 512px Mapbox Satellite tiles
The tiler and projection are still not aware of the 512px size.
This results in fetching 512px images but placing them in the 256px slippy map
and scalling them down.

(This is dumb but at least they look nicer than before)
2018-07-22 02:50:49 -04:00
Bryan Housel
52dc6c280f Preparation for non-256px tileSizes in sources 2018-07-22 01:43:56 -04:00
Bryan Housel
2fa593421f Rename scaleExtent to zoomExtent, slightly simplify getTiles() 2018-07-22 01:15:44 -04:00
Thomas Hervey
4038c8200e added note section to help docs 2018-07-22 00:05:15 -04:00
Thomas Hervey
00bb733736 changed note annotation icons 2018-07-21 22:49:12 -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
Thomas Hervey
38b4e462c6 merged from 'new-note-categories' 2018-07-21 21:46:07 -04:00
Thomas Hervey
776f1899b3 merged from 'master' 2018-07-21 21:45:08 -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
658721a150 WIP: added note category, TODO: update input 2018-07-21 19:36:13 -04:00
Bryan Housel
292347b28a Use utilTiler's Null Island filter for overlay sources 2018-07-21 18:53:19 -04:00
Bryan Housel
f6e41a1cb8 Remove unused zoomDelta parameter 2018-07-21 18:52:54 -04:00
Thomas Hervey
373353f40d added breathe behavior & cleaned hover/select styling on notes 2018-07-21 15:54:47 -04:00
Thomas Hervey
e8fc9f2eda simplify save buttons 2018-07-21 12:31:22 -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
Thomas Hervey
ef6a5bdf85 merged from 'master', fixed typo 2018-07-21 11:02:01 -04:00
Bryan Housel
ff64455370 rename the file too 2018-07-21 10:12:11 -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
a6bdbcabb2 merged from 2018-07-20 23:21:24 -04:00
Thomas Hervey
fbedbb1608 select note before rendering sidebar 2018-07-20 23:17:41 -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
24579b15bc WIP testing new drag_notes mode 2018-07-20 14:26:02 -04:00
Thomas Hervey
5d779f2fc5 WIP: readded missing vars 2018-07-20 12:56:36 -04:00
Thomas Hervey
18def6e576 fixed accidental deletion move function 2018-07-20 12:10:50 -04:00
Thomas Hervey
1edd9ae92f WIP: added incomplete move note action 2018-07-20 12:08:26 -04:00
Thomas Hervey
e9aa36e812 restrict adding notes to zoom >= 16 2018-07-20 10:40:04 -04:00
Bryan Housel
3f10b15ee8 Merge pull request #5148 from openstreetmap/refactor-loadTiles
moved getTiles and filtering to utils
2018-07-19 21:24:46 -04:00
Thomas Hervey
5daffe3d25 Merge branch 'master' into new-note 2018-07-19 18:38:26 -04:00
Thomas Hervey
42e24c13d9 WIP drag note 2018-07-19 18:34:15 -04:00
Thomas Hervey
14212b47fe WIP: drag note 2018-07-19 15:21:46 -04:00
Thomas Hervey
386d375b7a fix excessive note tiling and network request 2018-07-19 10:51:39 -04:00
Matias Volpe
c000da07af Leave directional indicator only for current image 2018-07-19 09:49:00 -03:00