Commit Graph

293 Commits

Author SHA1 Message Date
Quincy Morgan
7b09b6c0dc Enable low-zoom display of focused feature when resolving conflicts (close #7330) 2020-05-18 17:14:50 -04:00
Quincy Morgan
b5140f25a4 Merge branch 'develop' into 1ec5-custom-wms-template-7428 2020-05-18 15:00:44 -04:00
Quincy Morgan
a5091c3bd0 Account for pointerId and simplify position calculations in doubleUp (re: #7611) 2020-05-18 09:58:15 -04:00
Quincy Morgan
dff4268256 Allow selection, deselection, and multiselection with the spacebar (re: #3843)
Don't open the edit menu on single spacebar press
Open the edit menu for long spacebar press (re: #7577)
2020-05-14 11:19:20 -04:00
Quincy Morgan
e6fc7e221a Fix menu position when long-pressing features on touchscreens (re: #7577)
Improve comment
2020-05-10 10:59:56 -07:00
Quincy Morgan
77552c4430 Fix map interaction on devices not supporting pointer events 2020-05-08 15:44:02 -07:00
Quincy Morgan
5a8f573889 Continue zoom/pan of map when a down pointer moves off the map (re: #5505)
Fix possibly #6745
2020-05-08 15:30:38 -07:00
James Kingdom
dd3f0f0cf9 Remove corridor from path category 2020-04-28 22:03:39 +01:00
Bryan Housel
e1c4823e15 Update the custom background instructions pane to include wms 2020-04-11 23:36:35 -07:00
Bryan Housel
0917bc7189 Add template type detection for custom sources
(closes #4977)

Before custom sources were assumed tms, now we detect wms
and guess 'EPSG:3857' projection
2020-04-11 23:34:59 -07:00
Quincy Morgan
ca3a0f9dbc Fix lint warnings 2020-04-02 11:12:10 -07:00
Quincy Morgan
8734b67821 Remove the context.intersects passthrough function 2020-04-01 15:36:53 -07:00
Quincy Morgan
a58abe3c6f Move localStorage interface from a property of coreContext to a corePreferences function 2020-04-01 11:00:48 -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
9731b93cec Move uiTooltipHtml functionality into uiTooltip
Refactor uiEditMenu to use standard UI patterns instead of SVG
2020-03-25 12:22:10 -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
5fd25601fe Convert map surface and supersurface from ids to classes 2020-03-21 13:41:06 -07:00
Quincy Morgan
72a99673a0 Revert #7428 2020-03-20 09:59:30 -07:00
Bryan Housel
47aaec0db6 Sanitize personal tokens from custom background imagery
(closes #6801)
2020-03-14 10:30:46 -04:00
Quincy Morgan
c16e03b9b3 Merge pull request #7428 from openstreetmap/imagery_index
Imagery index
2020-03-13 13:50:46 -07:00
Bryan Housel
2805c55ff3 Update the custom background instructions pane to include wms 2020-03-13 16:43:04 -04:00
Quincy Morgan
9eb694faec Remove radial menu 2020-03-13 13:29:46 -07:00
Bryan Housel
2a28a03ca1 Add template type detection for custom sources
(closes #4977)

Before custom sources were assumed tms, now we detect wms
and guess 'EPSG:3857' projection

This commit also delays selecting the custom source in background_list.js,
because creating the background sources is promisified now might not happen
until after the UI control is created
2020-03-13 15:56:13 -04:00
Bryan Housel
5db95d8a89 Fix source filtering for 'custom' and 'none' 2020-03-13 14:57:40 -04:00
Bryan Housel
bdd02e5943 Fix source filtering at low zooms to include global sources 2020-03-13 12:43:11 -04:00
Bryan Housel
1aa5e89a38 Support {apikey} token replacement 2020-03-12 17:15:42 -04:00
Bryan Housel
dbe643aeac Switch from bundled editor-layer-index to fetched imagery-index 2020-03-12 14:27:49 -04:00
Quincy Morgan
73d68b7a65 Fix issue where browsers could page back or forward when swiping horizontally over the map with a trackpad (close #5552) 2020-03-10 11:15:15 -07:00
Quincy Morgan
41e58dc32e Fix issue where vertices wouldn't always disappear on deselection (close #7419) 2020-03-09 15:58:24 -07:00
Quincy Morgan
f8f69a777a Replace inconsistently-supported dblclick events with custom handler on platforms supporting pointer events
Fix issue where double-tap-to-zoom would not be properly disabled when drawing on touch devices (close #2128)
Support adding nodes to ways with double-tap with on touch devices (close #2677)
Support double-tap-to-zoom with styluses on touch devices
Don't accept double click/tap events if the taps are far apart
Don't re-enter modeSelect when clicking the selected feature again
2020-03-06 12:46:26 -08:00
Quincy Morgan
83a51a4192 Use pointer events for node dragging and drawing (re: #5505)
Enable dragging nodes with touches and styluses (close #7415)
2020-03-05 15:18:39 -08:00
Quincy Morgan
1147438d12 Use pointer events for map zooming and panning where supported (close #6598, re: #5505) 2020-03-05 10:38:30 -08:00
Quincy Morgan
f4c39cc434 Don't require translations or uiFlash in rendererMap 2020-03-02 14:59:11 -08:00
Quincy Morgan
3ae009ea49 Rename d3_zoom object to disambiguate from zoom level variables (re: #5505) 2020-02-27 19:51:07 -08:00
Bryan Housel
dc7fba4bf8 Have utilStringQs advance past any leading '?' or '#' characters
This lets us remove a bunch of substring(1) and +1 from the code.
2020-02-20 17:09:54 -05:00
Quincy Morgan
b921ca3cb4 Move map features and map style options to their own pane section objects (re: #7368)
Handle area fill and change highlighting logic in the rendererMap object and issue change events
2020-02-19 11:23:02 -08:00
Bryan Housel
086cade061 Restore Maxar imagery layers using masked urls
(cherry pick of #7356)
2020-02-14 14:51:03 -05:00
Bryan Housel
6e5cb45c17 Don't bundle the imagery anymore, fetch from dist/data at runtime
(re: #4994)
2020-01-30 17:10:41 -05:00
Bryan Housel
bafd763e19 Add a trailing space to the custom imagery url
(closes #7207)
2020-01-06 22:42:43 -05:00
Quincy Morgan
827c8034d5 Enable zoom-to-center of multiple selected entities (close #6696) 2019-12-13 10:30:00 -05:00
Quincy Morgan
912151ff38 Allow viewing and editing the tags/relations of selected features at any zoom level in 2.x (re: #5001) 2019-12-12 16:54:16 -05:00
Quincy Morgan
9d936b4aea Rename rendererMap.editable function to more precise rendererMap.editableDataEnabled
Make coreContext.editable function also account for whether user is in modeSave
2019-12-12 16:06:28 -05:00
Quincy Morgan
80a4cec8dd Manually force background tile images to display at their expected size (close #7070) 2019-12-02 12:38:55 -05:00
Quincy Morgan
b5a5dfc34a Don't list non-global imagery sources at low zooms (close #7062)
Always show the currently selected background in the list (close #7061)
2019-11-22 12:14:20 -05:00
Quincy Morgan
c2a49f4e02 Disallow zooming past the min/max zoom bounds via scrolling or pinch-to-zoom (close #6851) 2019-09-19 16:27:51 -04:00
Quincy Morgan
a97f05c9dc Disable zoom in/out buttons when at max or min zoom already (close #6847) 2019-09-18 15:56:32 -04:00
Matias Volpe
8e616d7384 feat: add Mapillary Map Features layer 2019-08-22 15:16:31 -03:00
Quincy Morgan
dd7b2603af Fix issue where a deleted feature might not disappear from the map (close #6480) 2019-08-13 15:25:07 -05:00
Quincy Morgan
83c5fa3215 Fix issue where background panel wouldn't update (close #6627) 2019-07-08 16:48:10 -04:00
Quincy Morgan
c95cead06d Fix bug where issues would not be properly centered if the map was not already at z19 (close #6384) 2019-05-24 10:28:59 -04:00