| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
| |
This is so the file is not blocked by a Content-Security-Policy header.
This has already been done in the other OpenLayer files.
|
| |
|
|
|
|
|
|
|
|
|
| |
* Much simplified display of metadata field options.
* Fields can now be dragged into the desired order.
* Drop-down question form disabling can now have
a different message per option.
Co-Authored-By: Matthew Somerville <matthew@mysociety.org>
|
|
|
|
|
| |
The area display code was switched from KML to GeoJSON in 30426bc0
but this library was missed being updated to match.
|
| |
|
| |
|
|
|
|
| |
This adds better keyboard support.
|
|
|
|
|
| |
The new version includes an optional modal feature that we’ll use
in the report page filters on small screens.
|
|
|
|
|
| |
Add a WMTS config to use Buckinghamshire's own map tiles to display
house numbers.
|
|
|
|
| |
GeoJSON is used by the /reports page now, not KML.
|
|
|
|
| |
Include instructions to fork to prevent this happening again.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Also add body name to layer defaults, so they are only used where appropriate.
Switch mapit area javascript calls to GeoJSON, so we can drop KML support in
OpenLayers.wfs.js which saves a small amount of bandwidth.
|
|
|
|
| |
Styled to only be visible to staff.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BANES have some staff-only assets, so this adds a cobrand hook
to enable extra JS to be included on the page for staff users.
- Add custom OpenLayers build with GeoJSON support
- Add grit bins/street lights/LLPG asset layers
- Displays non-BANES street light assets in grey
- Add adopted highways to map
This means USRNs will be set for reports made by members of the public.
To keep the map simple, however, the highways layer is invisible to
non-staff users.
|
|
|
|
| |
outside of Bucks roads
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Y-axis labels in the Dashboard ranking tables now break onto multiple
lines if they are more than 4 words long.
/web/vendor/chart.min.js showing as modified because we updated it to
include a recent fix to label alignment on vertical scales:
https://github.com/mysociety/Chart.js/commit/4130c31
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It seems that the projectInverse/projectForward methods in
OpenLayers.Layer.SphericalMercator have been renamed which was causing
problems.
Additionally this gem was buried in the OpenLayers.Projection.transform
docs:
Returns point - [...] The original point is modified.
The previous code didn't seem to modify the original point which was
confusing OpenLayers.
|
|
|
|
| |
This prevents e.g. the all reports graph dipping down.
|
|
|
|
|
| |
No need for any jQuery UI any longer (only base use was already gone
when admin stats was moved to dashboard).
|
| |
|
|
|
|
| |
Fixes #1589.
|
|
|
|
| |
And fix reference to it in the front page prefetch list.
|
|
|
|
|
| |
The multi-select plugin is a separate project, and should be treated as
a vendor file.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This removes the yepnope library, instead using <link rel="prefetch">
with a polyfill (the polyfill will work on Safari but reload cached
script on the front page each time).
We prefetch map-related JavaScript (and other libraries only used on map
pages, such as Dropzone and Fancybox) on non-map pages, and don't bother
loading the validate plugin on the front page.
Now the map JavaScript list is available everywhere, we can use that
in the prefetch rather a hardcoded list.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This is a much broader summary page, plus a body name autocomplete.
This uses a cut down version of chart.js. [1]
[1] The full version was 149Kb (41Kb gzipped) plus you needed moment
(50Kb/17Kb), for a total of 199Kb/58Kb. By stripping out unused graphs
and code and config options, and switching to category axis rather than
time, it is now a total of 39Kb/13Kb.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The newest version of Dropzone has added support for client-side resizing of
images, so this commit upgrades to version 5.1.1 and takes advantage of that in
order to reduce the disc space consumed by uploaded images.
The target size & JPEG quality is quite aggressive, resulting in files in the
region of 200-300KB instead of several MB. I've tried to pick a value which
doesn't impact the usefulness of the photos in identifying problems.
Handily the new version also correctly rotates images according to the EXIF tag
so our patch has be reduced dramatically to deal with the sync nature of the
mini EXIF library in use.
Related to the disc space part of #1411, though EXIF metadata isn't stripped.
|
|
This makes the git hook that lints our own JavaScript easier,
and keeps things more cleanly separated.
We also remove unused third party libraries (select2 and
jquery.placeholder).
|