Commit Graph

126 Commits

Author SHA1 Message Date
Mateusz Konieczny
befbe6265e unify map display state store
fix night mode display for buttons
2022-12-08 20:45:33 +01:00
Mateusz Konieczny
21eea660be simplify code 2022-12-08 20:45:33 +01:00
Mateusz Konieczny
57361dcbdc remove dead code 2022-12-08 20:45:33 +01:00
Mateusz Konieczny
f181daa900 tweak labels of layer buttons 2022-12-08 20:45:33 +01:00
Mateusz Konieczny
b17b7922b6 enable/disable layer buttons 2022-12-08 20:45:33 +01:00
Mateusz Konieczny
6ad6c7f11b fix mistaken label 2022-12-08 20:45:33 +01:00
Mateusz Konieczny
46a7ac6cf3 tweak layer naming 2022-12-08 20:45:33 +01:00
Mateusz Konieczny
e885d758dc add useContext to allow changing display state from two places
- buttons on the map
- sidebar buttons
2022-12-08 20:44:36 +01:00
Mateusz Konieczny
38c75ac1a3 fix phrasing on some overlay buttons 2022-12-08 20:42:56 +01:00
Mateusz Konieczny
4218350b71 reorder switch buttons as expected 2022-12-08 20:42:56 +01:00
Mateusz Konieczny
97f8d9cf93 tweak housing colour 2022-12-08 20:42:56 +01:00
Mateusz Konieczny
9eb1ccff22 enable three more layers 2022-12-08 20:42:56 +01:00
Mateusz Konieczny
241c0583a9 enable borough boundary display by default 2022-12-08 20:42:56 +01:00
Mateusz Konieczny
c0b58acc3a add or improve attributions 2022-12-08 20:42:56 +01:00
Mateusz Konieczny
60253d2a79 better description of historic map 2022-12-08 20:42:56 +01:00
Mateusz Konieczny
19770cd343 add outline for historic map on top of it 2022-12-08 20:42:56 +01:00
Mateusz Konieczny
8f1a03222c new historic map example 2022-12-08 20:42:56 +01:00
Mateusz Konieczny
374a34e4ad conservation boundary new style 2022-12-08 20:42:56 +01:00
Mateusz Konieczny
a93aabfc4a historic map display test
note that it is test only - terms of use and copyright status needs to be checked
2022-12-08 20:42:56 +01:00
Mateusz Konieczny
8843cf33ef brown ca styling in overlays 2022-12-08 20:42:56 +01:00
Mateusz Konieczny
f3aaeddb96 more visible conservation area layer 2022-12-08 20:42:56 +01:00
Mateusz Konieczny
9805c0c17b switch conservation area to purple 2022-12-08 20:42:56 +01:00
Mateusz Konieczny
c070e6a946 enable conservation area display 2022-12-08 20:42:56 +01:00
Mateusz Konieczny
b6d4037226 show flood areas as areas 2022-12-08 20:42:55 +01:00
Mateusz Konieczny
669ec659fa add flood zone display 2022-12-08 20:42:55 +01:00
Mateusz Konieczny
7a72b6dca7 prevent overlap 2022-12-08 20:16:02 +01:00
Mateusz Konieczny
efab635407 show some INSPIRE parcels 2022-12-08 20:15:53 +01:00
Mateusz Konieczny
a6156d66a3 add switchable borough boundary overlay 2022-12-08 20:15:52 +01:00
Mateusz Konieczny
bec6277706 add special empty map
I am deeply unhappy about ugly disclaimer handling though right now I have no good ideas how to provide nicer display
2022-11-21 22:10:44 +01:00
Mateusz Konieczny
bba80f4511 Allow multiline legend entries
text will pleasantly flow on right side rather than appearing under icon
2022-02-14 13:36:19 +01:00
Mateusz Konieczny
08807b2654 Enable hiding legend also on a large screens 2022-01-14 06:11:28 +01:00
Mateusz Konieczny
5ed0b261ae Set night mode as a default 2021-12-09 17:39:00 +01:00
Mateusz Konieczny
a0111a190b Simplify code
Co-authored-by: Tom Russell <tomalrussell@gmail.com>
2021-12-08 17:54:09 +01:00
Mateusz Konieczny
9bae9a0b63 Merge branch 'master' into night_mode 2021-12-03 20:37:03 +01:00
Mateusz Konieczny
6551d9742f revert part of whitespace changes 2021-12-03 20:32:54 +01:00
Maciej Ziarkowski
a4d1afab81 Rewrite map with hooks, add map colour toggle
Map and Legend components rewritten using hooks.
Also, each category can now have multiple available colour scales.
These can be switched using a select dropdown in the legend.
2021-10-01 13:30:03 +01:00
Vincent Schaffer
611772efa8 intergrated night filter 2021-07-17 17:49:38 -04:00
Vincent Schaffer
c0ad25240d added filter css 2021-07-17 17:30:03 -04:00
Maciej Ziarkowski
8f94c22586
Reduce map maxZoom to avoid tiles missing on retina
Due to a problem with Leaflet, the combination of setting maxZoom, maxNativeZoom and detectRetina
causes the map on retina devices to go blank when zooming to max zoom level.
Decreasing max zoom to 18 reduces the ability of users to zoom in, but prevents this issue.
2021-06-16 22:41:01 +01:00
Maciej Ziarkowski
efb5dafcdc Update map position setting for react-leaflet v3 2021-06-12 01:35:20 +01:00
Maciej Ziarkowski
b0791c4cdc Set base map theme to Light without switching
This is necessary until we transition to a better
option for base maps (e.g. vector maps), as the
previous OS API is now defunct / inaccessible
2021-05-06 18:53:57 +01:00
Maciej Ziarkowski
1ee6a7581e Add hotfix for basemap - set to plain color 2021-05-04 17:17:14 +01:00
Maciej Ziarkowski
0848ba5246 Fix TileLayer url bug, reorganise map layers 2021-05-02 18:24:27 +01:00
Maciej Ziarkowski
38896d6852 Fix bug in updated react-leaflet highlight layer 2021-04-27 00:30:51 +01:00
Maciej Ziarkowski
044c3edaa4 Update typescript, react, leaflet 2021-04-26 19:19:06 +01:00
Maciej Ziarkowski
305f2f1671 Refactor map app with hooks and separated config 2021-02-24 07:49:56 +00:00
Maciej Ziarkowski
1ff3b38c4a
Refactor data maps and add building outlines (#630)
* Add subtle border for age layer buildings

* Simplify map data queries

* Fix typo in updated construction layer query

* Enable data tile caching switch for development

* Enable turning tile cache off

* Use render time variables for highlight tiles

* Create building numbers map layer

* Create database view for simpler map queries

* Decrease min zoom for numbers layer

* Add building outlines to all map layers

* Adjust building numbers style and zoom level

* Revert "Create database view for simpler map queries"

This reverts commit e3c342cb7393f491c838df5654c2316a9dab08e1
which cannot be implemented before upgrading Postgres to min v11
2021-01-29 02:40:11 +00:00
Maciej Ziarkowski
3a0c852088
Refactor and restyle UI (#645)
Tweaks to visual output and code organisation related to styles of:

- sidebar (category grid, data view/edit, section headers and action buttons)
- header/menu
- map controls (search box)
- layout (sidebar, menu, header sizes)
2020-12-27 23:51:32 +00:00
Tom Russell
2d6a18f81b Add verification for Facade Data, thread info through frontend 2020-08-04 15:54:49 +01:00
Maciej Ziarkowski
6846a03878 Update current use legend 2020-07-16 16:22:30 +02:00