aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
Commit message (Collapse)AuthorAgeLines
* [UK] Use staging hosts on some staging sites.Matthew Somerville2020-03-03-1/+2
|
* [Northamptonshire] config files for WMS mapsStruan Donald2020-02-17-0/+38
|
* base files for displaying WMS mapsStruan Donald2020-02-17-3/+36
| | | | | Basic config and setup files for using WMS based map tiles. These still require config in appropriate cobrand perl and javascript files
* Restrict lat/lon in URL/fields to 6dp.Matthew Somerville2020-01-31-6/+6
|
* Don’t highlight duplicate pins on mobileDave Arter2020-01-31-9/+15
| | | | | The presence of the ‘mouseenter’ handler meant two taps were required to expand the report preview.
* Display inline map for duplicate suggestions on mobileDave Arter2020-01-31-0/+4
| | | | For #2668.
* Use our own Permalink class.Matthew Somerville2020-01-10-59/+74
| | | | | We are overriding quite a bit of it and not using other bits, so it will be less code to only have our own Control.
* Reduce duplicate Permalink.updateLink calls when zooming mapDave Arter2020-01-09-0/+18
|
* Merge branch 'cheshire-east-maps'Matthew Somerville2020-01-09-65/+51
|\
| * [Cheshire East] Use own map tiles.Matthew Somerville2020-01-08-0/+33
| |
| * Use variables for marker size boundaries.Matthew Somerville2020-01-08-65/+18
| |
* | Display GPS marker on /around & /report/new if geolocate link usedDave Arter2020-01-08-0/+94
|/ | | | | | Attempts to allow for CSS animations by not destroying the marker's DOM element each time a location update is received - with limited success.
* [Bexley] Switch to use MasterMap map typeChris Mytton2019-11-27-24/+0
| | | | | | Now that both Peterborough and Bexley are using MasterMap data we can combine them into a single "MasterMap" map type to reduce code duplication.
* [Peterborough] Add OS MasterMap map tilesChris Mytton2019-11-27-0/+24
| | | | | This adds a new "MasterMap" map type which uses tiles from Tilma to display MasterMap data.
* Merge branch 'fix-dupes-'Matthew Somerville2019-10-15-3/+6
|\
| * Fix issue loading inspector duplicates on /around.Matthew Somerville2019-10-15-3/+6
| | | | | | | | | | | | As there are two category drop-downs in this situation (one in the hidden reporting form, one in the inspect form), the correct entry needs to be specified.
* | Add map filter debouncing.Matthew Somerville2019-10-15-2/+15
|/
* Only show duplicate suggestions once per category change on mobileDave Arter2019-10-07-2/+22
|
* Dismiss duplicate selection UI when returning to map on mobileDave Arter2019-10-07-0/+6
|
* Merge branch 'zurich-staging'Matthew Somerville2019-09-30-23/+15
|\
| * [OpenLayers] Never send X-Requested-With header.Matthew Somerville2019-09-30-0/+15
| |
| * [WMTS] Remove unneeded reprojection code.Matthew Somerville2019-09-30-23/+0
| | | | | | | | | | The base layer does this transformation, so I am not sure what this was for.
* | [IsleOfWight] fix wmts bbox strategy settingStruan Donald2019-09-27-2/+2
| | | | | | | | | | | | Change the way we set the BBOX strategy for the map layer as otherwise when we check for bbox_strategy in display_around this is set but has not been associated with a layer so .activate fails.
* | [IsleOfWight] switch to IoW map tilesStruan Donald2019-09-27-0/+206
|/
* Merge branch 'bexley-map-tiles'Matthew Somerville2019-09-19-0/+24
|\
| * [Bexley] Add new map tiles.Matthew Somerville2019-09-19-0/+24
| |
* | Remove on-map permalink.Matthew Somerville2019-09-19-41/+8
|/ | | | We retain the code as it is updating the URL on map move.
* Maintain filter_category/group if locate me used.Matthew Somerville2019-08-16-1/+1
| | | | Also update lat/lon parameters to match JS.
* Merge branch 'issues/commercial/1480-asset-duplicate-interaction'Matthew Somerville2019-08-08-1/+17
|\
| * Have duplicate suggestion & assets coexist better.Matthew Somerville2019-08-07-1/+17
| |
* | Hide category extras when dupe suggestions shown.Matthew Somerville2019-08-07-0/+2
|/
* prevent including email address in report titleStruan Donald2019-08-02-1/+1
| | | | | | | | If autofill on Chrome is turned on and has saved the user's login it can autofill the user's email address in the report title, so add validation to make sure the title does not look like an email. Fixes #2570
* Improve map JavaScript defensiveness.Matthew Somerville2019-07-10-0/+13
| | | | | Add more checking for map things so e.g. on a skipped map page we stop getting JavaScript errors given there is no map present.
* [Hounslow] Use custom WMTS base mapDave Arter2019-06-04-0/+194
|
* Have duplicate and asset messages work together.Matthew Somerville2019-05-28-2/+13
|
* Do not focus on title on duplicate list removal.Matthew Somerville2019-05-28-14/+3
| | | | | Sometimes this can be a long way down, if e.g. extra Open311 questions above.
* [Buckinghamshire] use buckinghamshire map tilesStruan Donald2019-05-16-0/+147
| | | | | Add a WMTS config to use Buckinghamshire's own map tiles to display house numbers.
* Tidy up duplicate fetching code.Matthew Somerville2019-03-28-26/+8
| | | | | | Run immediately, not onready, so the category change listener is in place; listen to a better event, removing need for a debouncer; don't look up if empty category.
* Listen for all inspector form duplicate events.Matthew Somerville2019-03-06-2/+2
| | | | | | The form may be brought in via JS, so we have to add an event to something that will always be there (or alternatively set up when pulled in, which was the old pre-duplicates.js behaviour).
* [Bromley] Initial heatmap page.Matthew Somerville2019-02-28-1/+8
|
* Duplicate suggestion UI when reporting problems.Zarino Zappia2019-02-25-4/+210
| | | | | | | | | | | | | | | | | | The previously staff-only fixmystreet.set_up.manage_duplicates() has been promoted from staff.js to its own file so that we can use it to display the duplicate suggestions on the `/report/new` form. render_duplicate_list (the old refresh_duplicate_list) no longer filters or slices the reports_list returned by the ajax call, since it turns out the server handles all of that (`sub _nearby_json` in `Report.pm` and `sub nearby` in `Nearby.pm`). Since the expandable list items include the "fancybox" image previews, the fancybox CSS now has to be included in the `/report/new` page head, hence the addition of "photo-js.html" in `fill_in_details.html`. The “Get updates” flow reuses the same JavaScript that handles the submission of the "Get updates" drawer at the bottom of around pages.
* Add parameter to URL when “Show older” clicked.Matthew Somerville2019-02-14-2/+1
| | | | | The behaviour should be the same whether “Show older” or “Show older reports” is clicked, but only the latter was updating the URL.
* Fix typo in d4c2211cf.Matthew Somerville2019-02-13-1/+1
|
* Improve use of OL ArgParser/missing zoom in URL.Matthew Somerville2019-02-04-16/+24
| | | | | | Remove the server-side zoom-in-url fix, instead use an ArgParser subclass to default to the provided data if nothing in URL. Then we can switch to using short lat/lon in geocoder URLs.
* Update URL whenever map moves, using replaceState.Dave Arter2019-02-04-16/+51
| | | | | | Fixes #2242. Co-authored-by: Matthew Somerville <matthew@mysociety.org>
* Make staff JavaScript more self-contained.Matthew Somerville2019-01-29-2/+2
| | | | So it can run even when fixmystreet.js is not loaded.
* Make who question more prominent.Matthew Somerville2018-12-19-0/+14
|
* [UK Councils] Fix undefined body_validation_rules.Matthew Somerville2018-12-11-2/+0
| | | | The core validation_rules.js is not included on e.g. the front page.
* Don't draw a pin for a problem with no location.Martin Wright2018-12-03-0/+3
|
* Restore zoom level when navigating back to /around from /reportDave Arter2018-11-27-0/+16
| | | | Fixes #1649.