aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map
Commit message (Collapse)AuthorAgeLines
* Explicitly pass one argument to encode_json()Tom Hukins2019-04-09-3/+3
| | | | | | | | Previously, it was unclear how many arguments the function took. When running tests I saw the error: Too many arguments for Cpanel::JSON::XS::encode_json at perllib/FixMyStreet/Map/WMTSBase.pm line 217, near "}"
* Update URL whenever map moves, using replaceState.Dave Arter2019-02-04-0/+2
| | | | | | Fixes #2242. Co-authored-by: Matthew Somerville <matthew@mysociety.org>
* [BANES] Add roadworks.org layerStruan Donald2018-11-06-0/+2
| | | | Uses same parsing of roadworks messages as Lincs
* allow map zoom constants to be overriddenStruan Donald2018-10-15-2/+2
| | | | | call ZOOM_LEVELS and MIN_ZOOM_LEVELS using self so that we can override them in a subclass.
* [Angus] Remove cobrand.Matthew Somerville2018-10-10-18/+0
|
* [Zurich] Use HTTPS map tiles, update OpenLayers.Matthew Somerville2018-08-22-2/+2
|
* [Lincolnshire] Add assets to map & roadworks.org integrationDave Arter2018-08-17-0/+21
|
* [UK] OS map only shown from zoom 12+.Matthew Somerville2018-08-09-1/+1
| | | | Bing no longer shows it at zoom level 11.
* [UK] Pull in cobrand asset files on national site.Struan Donald2018-08-03-8/+10
| | | | | | | 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.
* Update Bing Maps parameter ID.Matthew Somerville2018-08-01-3/+3
| | | | [fixmystreet.com] Update to use OS OpenMap Local tiles.
* [Bromley] extra asset layersStruan Donald2018-06-04-1/+2
| | | | | Adds street lights, park bins, trees, rights of way, and TfL red route asset layers.
* [Zurich] Update to new map server.Matthew Somerville2018-05-23-6/+6
|
* [BANES] Add BathNES map type & assetsDave Arter2018-04-10-0/+18
| | | | | | | | | | | | | 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] Switch base map to OpenStreetMapDave Arter2018-04-03-3/+2
|
* [Buckinghamshire] Initial roadworks work.Matthew Somerville2018-04-03-0/+1
|
* [Buckinghamshire] Update OL to have GeoJSON and 27700 stuff.Matthew Somerville2018-04-03-0/+1
|
* [Buckinghamshire] Add grit bins/street lighting asset layersDave Arter2018-04-03-0/+18
|
* [UK] Make sure jQuery is loaded where it is neededMatthew Somerville2017-12-12-0/+2
| | | | | | | Bromley uses jQuery for its A-Z on all pages; only load Bristol map JavaScript on map pages (same as Angus); drop Oxfordshire JS use of jQuery; fix Zurich load order; and improve jQuery checking in other JavaScript.
* Move map JS to code, to be used on all pages.Matthew Somerville2017-11-15-6/+85
|
* Update Bing Maps parameter ID.Matthew Somerville2017-11-06-2/+2
|
* [Zurich] Fix map offset bug.Matthew Somerville2017-09-20-12/+4
| | | | | | | | | The upgrade to OpenLayers in 31b8337e3 was not accompanied by fixing the tileOrigin manually tweaked as an old workaround. This moved the map c. 100m out of alignment. Bristol fixed this in a7f60abb by adding topLeftCorners, but this is better done by fixing origin_x/y.
* [Bromley] Fix map tiles.Matthew Somerville2016-11-18-42/+15
| | | | | The change to remove inline JavaScript stopped the Bromley-specific tiles from working. Put them back with an extra JavaScript file.
* Fetch MapQuest images via HTTPS rather than HTTPJon Kristensen2016-09-07-5/+5
|
* [Zurich] Fix server side map tile URL generation.Matthew Somerville2016-08-17-5/+4
| | | | | | @scales does not include the hidden zoom levels, so we need to offset the matrix ID to be correct in the URL but not do so to calculate the tile row and column.
* Fix typo in WMTS number of zoom levels.Matthew Somerville2016-08-17-2/+2
|
* Add static map output view for a report.Matthew Somerville2016-08-01-10/+21
|
* [Zurich] Use new LV95/CH1903+ geocoder and base map tilesDave Arter2016-07-07-241/+83
| | | | | | | | | | | - Use new `getLocation95` method for geocoding addresses - Replace Coordinates::CH1903 with Coordinates::CH1903Plus - Refactor Map::Zurich to use WMTSBase instead of duplicating code - Slightly refactor map templates to make using custom WMTS tiles easier - Use correct sizes for marker pins on maps Closes mysociety/FixMyStreet-Commercial#769. Closes mysociety/FixMyStreet-Commercial#768.
* [Bristol] Use BCC's base map tilesDave Arter2016-06-17-0/+416
| | | | | | | | | This refactors the Map::Zurich module into something that makes it easier to use custom map tiles for a cobrand. This also includes some refactoring of the JS & map templates to make it easier to use a custom WMTS base map in future cobrands.
* Update copyright year shown on OS & Bing mapsDave Arter2016-06-07-1/+1
|
* Fallback if request to Gaze fails.Matthew Somerville2016-05-18-4/+4
| | | | Fixes #1286.
* [Zurich] Use protocol relative map tiles.Matthew Somerville2016-03-30-1/+1
|
* Remove unnecessary shebang lines.Matthew Somerville2016-01-22-2/+0
|
* [Zurich] Add maps to Zurich admin report print viewZarino Zappia2015-10-06-31/+124
| | | | | | | | | | | | | | | | - Includes a small map at the top of the first page and a second full-width map on a separate page. - upgrades tiles to the new 512px ones already used by JS as implemented in https://github.com/mysociety/FixMyStreet-Commercial/issues/668 - Uses jQuery to clone a copy of the "noscript" map elsewhere into the DOM, because the original is too far from where we need it. - extracts maps/openlayers.html to call maps/noscript_map.html - specialises the Zurich version to allow a richer structure to be returned, including arbitrary sized map - Map::Zurich now returns nearly arbitrary sized map tiles - second larger map is prepared (only for admin/report_edit) See mysociety/FixMyStreet-Commercial#677
* [Zurich] Use new map tiles up to 1:250Dave Arter2015-10-06-13/+12
| | | | | - Refactor map tile size into a constant - Update map tiles to use new Zurich WMTS server directly instead of Apache proxy
* Factor out all uses of param()/params.Matthew Somerville2015-07-07-18/+18
| | | | | | | Use a central get_param and get_param_list functions dependent on whether we're after a scalar or a list (almost always a scalar). This prevents any possibility of confusion where param() could return a list, or params->{} an arrayref.
* Update Bing Maps parameter ID.Matthew Somerville2015-05-05-3/+4
|
* Support Stamen toner-lite and Bing Maps tiles.Matthew Somerville2015-02-23-47/+81
|
* Tidy up front page and map copyright templates.Matthew Somerville2015-02-23-1/+6
|
* Use env in shebang lines, and remove unneeded onesMatthew Somerville2015-01-19-20/+0
|
* Use HTTPS OpenStreetMap tiles.Matthew Somerville2015-01-09-4/+4
|
* FMS map tile changes for HTTPS.Matthew Somerville2014-05-30-1/+1
| | | | | Make the FMS map tile URLs be scheme independent, and only use one level of subdomain.
* Merge remote branch 'origin/sweden-rebase'Matthew Somerville2014-03-11-0/+4
|\ | | | | | | | | | | | | Conflicts: bin/update-schema locale/sv_SE.UTF-8/LC_MESSAGES/FixMyStreet.po perllib/FixMyStreet/DB/Result/Body.pm
| * Added MapQuest/OSM attribution.Jonas Oberg2014-03-11-0/+4
| |
* | Add Google OpenLayers-based map layer.Matthew Somerville2013-10-11-0/+22
|/
* Updated MapQuest links per instructionsJonas Oberg2013-08-30-1/+1
|
* Improve Google Maps support somewhat.Matthew Somerville2013-06-06-1/+34
|
* Add a zoomed in level.Matthew Somerville2013-04-09-4/+4
|
* Use internal proxy for maps for now.Matthew Somerville2013-03-12-1/+1
|
* Fix Zurich zoom levels (b4).Matthew Somerville2013-02-05-26/+18
|
* Remove two further out Zurich zoom levels, add 1:500 (fixes a9).Matthew Somerville2013-01-31-2/+2
|