aboutsummaryrefslogtreecommitdiffstats
path: root/web/vendor
Commit message (Collapse)AuthorAgeLines
* Include OpenLayers.Control.Geolocate in OL buildDave Arter2020-01-08-311/+313
|
* [UK,Zurich] Remove use of new window.Function.Matthew Somerville2019-11-26-2/+2
| | | | | This is so the file is not blocked by a Content-Security-Policy header. This has already been done in the other OpenLayer files.
* Generalise heatmap code to be under /dashboard.Matthew Somerville2019-10-15-0/+294
|
* Restructured admin category extra-metadata-formZarino Zappia2019-10-03-0/+2
| | | | | | | | | * 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>
* Fix GoogleOL library to include GeoJSON, not KML.Matthew Somerville2019-07-21-388/+307
| | | | | The area display code was switched from KML to GeoJSON in 30426bc0 but this library was missed being updated to match.
* Tidy up OpenLayers config files.Matthew Somerville2019-07-21-817/+0
|
* Upgrade jquery-validation.Matthew Somerville2019-07-19-782/+1197
|
* Update jquery.multi-select.min.jsMatthew Somerville2019-07-05-10/+11
| | | | This adds better keyboard support.
* Update version of jquery.multi-select.min.jsZarino Zappia2019-06-14-9/+10
| | | | | The new version includes an optional modal feature that we’ll use in the report page filters on small screens.
* [Buckinghamshire] use buckinghamshire map tilesStruan Donald2019-05-16-0/+0
| | | | | Add a WMTS config to use Buckinghamshire's own map tiles to display house numbers.
* Change KML to GeoJSON in OpenLayers.fixmystreet.js.Matthew Somerville2018-09-07-399/+317
| | | | GeoJSON is used by the /reports page now, not KML.
* Repeat of 0e497596.Matthew Somerville2018-08-23-1/+1
| | | | Include instructions to fork to prevent this happening again.
* Remove unused parts of OpenLayers.Matthew Somerville2018-08-23-63/+49
|
* [Zurich] Use HTTPS map tiles, update OpenLayers.Matthew Somerville2018-08-22-431/+439
|
* [Bristol] Update OpenLayers to add filter strategyStruan Donald2018-08-22-508/+374
|
* [UK] Pull in cobrand asset files on national site.Struan Donald2018-08-03-3355/+757
| | | | | | | 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.
* [BANES] Add parks & grounds asset layerDave Arter2018-06-26-1/+4
| | | | Styled to only be visible to staff.
* [BANES] Add BathNES map type & assetsDave Arter2018-04-10-0/+1687
| | | | | | | | | | | | | 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.
* [Buckinghamshire] Show error message when trying to create a road defect ↵Dave Arter2018-04-03-699/+1608
| | | | outside of Bucks roads
* [Buckinghamshire] Update OL to have GeoJSON and 27700 stuff.Matthew Somerville2018-04-03-1557/+699
|
* [Buckinghamshire] Add grit bins/street lighting asset layersDave Arter2018-04-03-0/+1614
|
* [UK] Linebreak long Y-axis labels on Dashboard bar chartZarino Zappia2018-03-01-3/+2
| | | | | | | | | 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
* Fix OpenLayers.Projection.OS transformsDave Arter2018-02-13-2/+10
| | | | | | | | | | | | | 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.
* Switch on monotone cubic interpolation.Matthew Somerville2018-01-09-2/+2
| | | | This prevents e.g. the all reports graph dipping down.
* [Oxfordshire] Use input type=date on Exor RDI pageMatthew Somerville2017-12-15-14/+0
| | | | | No need for any jQuery UI any longer (only base use was already gone when admin stats was moved to dashboard).
* Add bar chart functionality, for area summary pageZarino Zappia2017-12-15-79/+11
|
* Nicer multi-select elements in Admin pagesZarino Zappia2017-11-29-9/+9
| | | | Fixes #1589.
* Switch to minified jQuery multi-select library.Matthew Somerville2017-11-22-337/+9
| | | | And fix reference to it in the front page prefetch list.
* Move jquery.multi-select.js into vendor directoryZarino Zappia2017-11-20-0/+337
| | | | | The multi-select plugin is a separate project, and should be treated as a vendor file.
* Use modern prefetch.Matthew Somerville2017-11-15-1/+0
| | | | | | | | | | | | | 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.
* Remove ancient geolocation JS library.Matthew Somerville2017-11-06-85/+0
|
* [Zurich] Upgrade OpenLayers to master, matching others.Matthew Somerville2017-08-18-1364/+620
|
* [fixmystreet.com] New version of /reports page.Zarino Zappia2017-07-06-0/+81
| | | | | | | | | | | 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.
* Resize photos client-side before uploadingDave Arter2017-06-30-61/+1
| | | | | | | | | | | | | | | | 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.
* Move third party libraries into vendor directoriesMatthew Somerville2017-05-23-0/+8545
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).