Commit graph

70 commits

Author SHA1 Message Date
Tom Hughes
c47cb299a8 Replace uses of var with let or const as appropriate 2025-02-16 11:14:13 +00:00
Marwin Hochfelsner
550e5d336f Reevaluate iteration methods 2025-02-04 17:12:15 +01:00
Roman Deev
dae7a003fe Use baselayerchange/overlaylayerchange instead of layeradd/layerremove for speed up Map Data layer render 2025-01-27 15:44:46 +03:00
Anton Khorev
02257f7294 Allow specifying extra layer options in layers.yml 2024-12-07 19:21:36 +03:00
Anton Khorev
61aecd32a4 Set background for layer buttons to secondary body color 2024-11-15 18:33:16 +03:00
Anton Khorev
96ac0fb728 Use content box sizing instead of negative margins 2024-08-12 03:38:09 +03:00
Anton Khorev
20f112b89a Remove custom css from "Enable overlays" text 2024-05-25 04:47:32 +03:00
Tom Hughes
161fc8ac47 Replace deprecated text-muted class with text-body-secondary 2024-05-22 11:58:32 +01:00
Anton Khorev
5c0a55d7ff Remove custom right sidebar section class 2024-04-11 17:55:05 +03:00
Anton Khorev
f3ea0e14b0 Use Bootstrap toggle buttons for layers menu 2024-04-10 18:52:53 +03:00
Andy Allan
c162a9660e Use standard padding size for map-ui sidebar
The previous padding didn't match the main sidebar, and also used
sass division as part of the calculation.
2023-09-06 18:10:02 +01:00
Andy Allan
6fc0f764d5 Round the clickable map previews on the layer switcher
Most interactive elements on the site are rounded, so we can do the
same for these map previews.
2023-09-06 18:10:02 +01:00
Anton Khorev
cf3fa3bb2d Use jquery interface for enabling/disabling tooltips 2022-09-23 13:34:40 +03:00
Anton Khorev
e8f2af833a Fix zoom level related tooltips for layer checkboxes 2022-09-13 04:20:57 +03:00
Anton Khorev
e409e83b48 Merge tooltip fixes/tests 2022-09-13 01:52:23 +03:00
Anton Khorev
9acde429bf Inverted onAdd() method of sidebar panes 2022-08-27 22:55:19 +03:00
Anton Khorev
71e7208a0a Create pane button fn 2022-08-27 20:54:37 +03:00
Anton Khorev
8a02bd67d9 Create Leaflet sidebar pane control with header writer fn 2022-08-27 20:33:44 +03:00
Andy Allan
e443ec7587
Merge pull request #3634 from AntonKhorev/map-key-tooltip
Fix tooltips
2022-08-03 15:38:58 +01:00
Andy Allan
68776e378c Fix remaining tooltips, and add tests
These were broken during the upgrade to bootstrap 5

Fixes #3632
2022-08-03 15:20:50 +01:00
Anton Khorev
31a39d3479 Fix zoom level related tooltips except for layer checkboxes 2022-07-29 18:07:32 +03:00
Anton Khorev
89095c8981 Fix eslint errors 2022-07-27 21:36:54 +03:00
Anton Khorev
5ed2bfc950 Changed sidebar close button to Bootstrap 2022-07-27 19:35:29 +03:00
Andy Allan
5c086dad6e Use bootstrap form-check for overlay selection 2021-02-17 17:05:49 +00:00
Tom Hughes
c24c2e481c Merge remote-tracking branch 'upstream/pull/2667' 2020-08-05 21:50:08 +01:00
Andy Allan
1977e66ace Use bootstrap text-muted in place of custom deemphasze class
This avoids changing anything related to forms, since they will be
switched over to bootstrap separately.
2020-07-08 18:30:15 +02:00
Andy Allan
627f2493fa Refactor away from global form control styling
This enables forms to be converted one-by-one to bootstrap. Without this
refactoring, these global styles interfere with form control styling from
bootstrap.

The rearrangement of the search and directions styling is to solve CSS selector specitivity issues.
2020-07-01 17:23:02 +02:00
Andy Allan
0e2eae5dd1 Remove list styling from the lists used in the layers sidebar 2020-01-16 11:33:46 +01:00
Tom Hughes
c4c0e8105a Enforce consistent indentation in javascript code 2019-07-14 10:52:18 +01:00
Tom Hughes
5bd59e1936 Enable a number of eslint style rules 2019-04-07 17:02:39 +01:00
Tom Hughes
eb7678145a Use double quotes consistently in javascript code 2019-04-06 15:59:34 +01:00
Tom Hughes
5846e39a36 Disable keyboard controls for layer switcher maps
Fixes #1673
2017-11-09 14:29:17 +00:00
Lars Sonchocky-Helldorf
df17b997b3 Add public gps tiles layer for debugging purposes
Fixes #1239
Closes #1406
2017-01-04 19:26:15 +00:00
Tom Hughes
e0dd431e6c Propagate API keys to minimaps in layer switcher 2016-09-08 17:35:37 +01:00
Simon Legner
2520bdb9eb Close layers panel on double-clicking a layer
Relates to #465.
2015-08-26 23:31:36 +02:00
Tom Hughes
6d124f8012 Fix some more JSHint issues 2015-02-24 00:30:25 +00:00
Tom Hughes
1596713871 Fix some JSHint complaints 2015-02-23 21:45:57 +00:00
Tom Hughes
e5ff267073 Avoid using one translation as the key for a second
Translation keys need to be fixed, so we can't use the result of
one lookup to derive the key for another...

Fixes #697
2014-02-06 09:14:06 +00:00
John Firebaugh
944f3ebb67 Remove map data size warning (#592) 2013-12-03 19:38:26 +00:00
Tom Hughes
6362f60a54 Display the size warning when the data layer is disabled 2013-12-03 09:17:02 +00:00
John Firebaugh
cc57c65083 Auto-uncheck the data and notes layers at low zoom
Reenable them when returning to high zoom in the
same session.

Fixes #592
2013-12-03 08:55:15 +00:00
Aaron Lidman
e62bac06ed Improved noteLayer and dataLayer availability, closes #65 2013-11-15 15:06:44 -08:00
Aaron Lidman
d3e99bc8bd Hide control tooltips on #map-ui expansion, closes #55 2013-11-15 11:26:36 -08:00
Aaron Lidman
fd8f35309d Fix disabled overlay layers translations 2013-11-14 09:12:39 -08:00
Aaron Lidman
439ad373ec Disable overlay layers at minZoom and add tooltips 2013-11-13 17:30:15 -08:00
John Firebaugh
a805e0b545 Use our own hash implementation
We need more flexibility than L.Hash provides.
2013-11-11 14:42:59 -08:00
Eden Halperin
3689798a04 Return map-ui sidebars in mobile 2013-11-07 16:57:53 -05:00
Eden Halperin
89a132d31c user menu fix 2013-11-06 13:17:36 -05:00
Eden Halperin
bbfc65d1e1 base layers sidebar increased readability 2013-11-05 17:06:37 -05:00
John Firebaugh
5ac731a3fc Undo commenting out code 2013-11-05 12:38:47 -08:00