Commit Graph

307 Commits

Author SHA1 Message Date
Quincy Morgan 03ca12741f Make imageryBlocklists return regex objects instead of strings
Fix performance bug due to checking background source blocks too often
2020-09-04 10:09:47 -04:00
Quincy Morgan a72a2bb860 Hide background sources from the list if they're blocked (close #7905) 2020-09-03 12:30:59 -04:00
Peter Newman 4205ca1d07 Fix the seemingly safe spellings found by codespell
Untested, only checked by inspection.

(cherry picked from commit 2c47a11008)
2020-08-10 17:32:37 +01:00
Quincy Morgan bd9d4bce74 Fix issue with reversed bounding box coordinate order in WMS 1.3 for EPSG:4326 CRS (close #7557) 2020-07-24 17:43:52 -04:00
Quincy Morgan cf868464f4 Fix issue where hover sidebar wouldn't be closed when zooming out past editable extent (close #7765) 2020-07-13 15:47:12 -04:00
Quincy Morgan cf362cdcac Keep the edit menu open while panning the map but not zooming 2020-06-30 11:50:56 -04:00
Quincy Morgan 1b6e44bc14 Support {@2x} and {r} as parameters for high-res custom TMS tiles (close #7712)
Use retina tiles for the locator overlay on supported displays
2020-06-17 12:40:36 -04:00
Quincy Morgan 3ba805d6ca Skip editableDataEnabled check in rendererFeatures filters (re: #7706) 2020-06-16 13:19:54 -04:00
Quincy Morgan 0473243930 Add workaround for broken rapid tapping on iOS 13.4+ (close #7694) 2020-06-15 12:27:53 -04:00
Quincy Morgan 572ce0a787 Make sure horizontal-only scroll events can be translated into map pans (close #7659) 2020-06-04 13:29:45 -04:00
Jacob Scherber bfa1dbf8d4 remove trailing whitespace on line 2020-05-31 14:19:40 -07:00
Jacob Scherber 24ceda3d9c header size didn't include padding above buttons 2020-05-31 13:50:26 -07:00
Quincy Morgan 640d22b298 Prevent default drag and drop of background tile images if interaction handlers don't prevent dragging for some reason 2020-05-21 14:06:28 -04:00
Quincy Morgan 35eaf7045c Round ESRI background accuracy and resolution labels to four decimal places (close #7573) 2020-05-21 10:43:19 -04:00
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