Commit graph

52 commits

Author SHA1 Message Date
Anton Khorev
6c415ef142 Add aria-label to close buttons 2022-10-31 23:54:58 +03:00
Anton Khorev
58f0eea2a4 Remove unnecessary wrapper divs 2022-09-20 10:15:19 +03:00
Anton Khorev
fb75f447d7 Remove top margins from close buttons 2022-09-02 17:02:46 +03:00
Anton Khorev
5a256a6f2b Position 'too many features' close button with flex 2022-08-27 23:50:23 +03:00
Anton Khorev
4000a4004b Changed feature close buttons to Bootstrap 2022-07-27 21:02:16 +03:00
Tom Hughes
398a39dd0a Make sure the object layer is kept in front of the data layer 2022-02-22 18:55:34 +00:00
Tom Hughes
97bb135957 Don't highlight selected items in the data layer
Routing to the feature page is going to cause them to be overlaid
in orange anyway so there's no need for the blue highlight.
2022-02-22 18:54:40 +00:00
Tom Hughes
29d2f48214 Deep copy the original style when highlighting an object
Fixes #3465
2022-02-21 22:48:22 +00:00
Andy Allan
c8f0a81eb7 Rework sidebar to use padding on the sidebar_content div
This saves every header, list, paragraph etc having to sort out their own padding. The couple of instances where we want edge-to-edge can be acheived using the negative margin spacing utilities.

The padding is based on $spacer so that it can be adjusted automatically via bootstrap configuration.

This also means that we can remove many (mis-)uses of the browse-section class, which is only supposed to be for cases where there are multiple browse-sections in sequence (e.g. multiple nodes in the node history browse pages).
2021-06-16 15:45:58 +01:00
Andy Allan
0c098c3a1d Convert data feature warning to use bootstrap alert
Also rearrange dialog to fit with standard sidebar layouts, so that
the close icon and load buttons are not within the paragraph.

There may be a better way to construct this!
2020-07-15 19:34:19 +02: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
bd2e999756 Move some javascript functions out of global scope 2015-02-24 00:19:08 +00:00
Tom Hughes
fd0ed54b16 Add a close icon to the feature warning panel
Fixes #660
2013-12-18 00:14:29 +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
Tom Hughes
3b6580297f Rename changed translation to avoid test failures 2013-12-01 09:11:59 +00:00
Tom Hughes
3cd5f45e08 Simplify browse routes and make routes more consistent
This gets rid of the /browse/ prefix and uses /history consistently
for all routes that show a list of changesets.
2013-11-28 00:14:07 +00:00
John Firebaugh
0dbd18e2bb Document/clarify OSM.Router use 2013-11-25 13:10:07 -08:00
Tom Hughes
8482a525c0 Remove unneessary return added accidentally 2013-11-25 19:14:52 +00:00
Tom Hughes
87bf5e73d4 Fix "in bounds" test in updateData
Only call getData if the new bounds are not contained within the
old bounds, and only update the bounds after a successful load so
that the don't change if we error out.
2013-11-25 19:13:01 +00:00
Aaron Lidman
e62bac06ed Improved noteLayer and dataLayer availability, closes #65 2013-11-15 15:06:44 -08:00
John Firebaugh
4863a94906 Remove "Loading..." from browse for now 2013-11-13 13:50:36 -08:00
Aaron Lidman
4bfbdcc2f1 Loading indicator for notes 2013-11-12 11:20:23 -08:00
John Firebaugh
b903d8b746 Fix browse overlay status messages 2013-11-08 10:46:24 -08:00
John Firebaugh
e5ca823f30 Work towards integrating data overlay and browse pages 2013-10-13 14:46:09 -07:00
John Firebaugh
de97f7bfe4 Consolidate layer initialization 2013-10-13 14:46:08 -07:00
John Firebaugh
a01195f149 Sidebar work 2013-10-13 14:45:58 -07:00
John Firebaugh
c919340c11 Need to preventDefault on href='#' links
Fixes https://trac.openstreetmap.org/ticket/4947
2013-08-15 17:42:43 +01:00
John Firebaugh
6618cb9019 Include layers in hash 2013-07-30 15:41:41 -07:00
Tom Hughes
5508a3857f Reload the object list when the data browser is reopened 2013-07-30 21:38:16 +01:00
Tom Hughes
90621b4b4f Abort a running data browser load before starting a new one 2013-07-30 21:30:16 +01:00
John Firebaugh
5e9ab5bc5e Layers work 2013-07-18 10:45:14 -07:00
John Firebaugh
9d33721630 Complete de-globalization of map 2013-07-18 10:45:13 -07:00
John Firebaugh
ef37ad8aaa Basic framework for map UI 2013-07-18 10:31:19 -07:00
Tom Hughes
168a9fc327 Replace various Leaflet extensions with new builtin methods 2013-06-27 21:53:26 +01:00
Tom Hughes
456d41e189 Remove use of jQuery toggle() function 2013-02-12 10:31:38 +00:00
John Firebaugh
394dcd7316 Avoid multiple click bindings on data layer 2012-11-29 18:31:17 +00:00
John Firebaugh
05eba79008 Move "Browse Map Data" to layers control
Fixes https://trac.openstreetmap.org/ticket/4680
2012-11-29 18:23:41 +00:00
John Firebaugh
5b42c683f5 Don't zoom map when enabling location filter 2012-11-09 13:13:44 -08:00
John Firebaugh
378d08f2c9 Update leaflet.locationfilter 2012-11-09 12:59:29 -08:00
John Firebaugh
f8b0b861d4 Restore maxFeatures check 2012-11-09 12:59:28 -08:00
John Firebaugh
fe6e837cfe Replace leaflet.draw with leaflet-locationfilter 2012-11-09 12:59:28 -08:00
John Firebaugh
deff87a577 Reduce flicker in data browser 2012-11-09 12:59:28 -08:00
John Firebaugh
030b7c4052 Update leaflet-osm 2012-11-09 12:59:28 -08:00
John Firebaugh
800f014486 Remove calls to map.setCenter 2012-11-09 12:59:27 -08:00
John Firebaugh
30ad58c01f Port to Leaflet 2012-11-09 12:59:27 -08:00
John Firebaugh
e316f0e425 Use jQuery's toggle binding
The old code never unbound the existing binding, so they
piled up.
2012-11-09 12:59:27 -08:00
John Firebaugh
14bc538681 Use ejs templates in browse JS 2012-10-13 13:01:00 +01:00
John Firebaugh
24c0bb1c88 Use proj/unproj consistently 2012-10-13 12:58:18 +01:00