aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenLayers.js
Commit message (Collapse)AuthorAgeLines
* Make sure top of reporting form is shown.Matthew Somerville2016-03-09-0/+1
| | | | | | If the list of reports was scrolled and then the map was clicked, the form would be pre-scrolled down. It now makes sure to scroll the form to the top. Fixes #787.
* Remove auto-scrolling of sidebar on pin hover.Matthew Somerville2016-03-09-20/+0
| | | | | This was added along with pin/sidebar highlighting in b71d042e, but has proved distracting/confusing.
* Really stop map strategy update firing too often.Matthew Somerville2016-02-09-0/+12
| | | | | | | It turns out the strategy was still firing even with correctly rounded co-ordinates from getMapBounds, as there were still rounding errors introduced by the two differing ways of calculating the map bounds. We override one function to always equal the results of the other method.
* Stop map strategy update firing too often.Matthew Somerville2016-02-09-1/+16
|
* Clearer relationship between map pins/list items.Zarino Zappia2016-02-09-29/+116
| | | | | | | | | | | | | | | | | | | Hovering over map pins highlights the relevant item from the sidebar beside the map. And hovering a sidebar item highlights the relevant map pin. Clicking a map pin takes you directly to the relevant report page, just like clicking an item in the sidebar. This means the OpenLayers popup "balloon" no longer appears on clicking a pin, and has been removed entirely. To make customisation of the list item hover colour easier, it has been abstracted out into a SCSS variable that cobrand authors should override (as the fixmystreet.com cobrand does) or leave at its default light grey colour. Fixes #1094.
* Add state/category filters to base cobrand.Matthew Somerville2015-10-07-4/+1
| | | | | | | This removes the on map/nearby tabs, replacing them with one combined list. The styling is moved to the base, so that it is used on mobile too. A closed option is added to the existing dropdown, and the base/fixmystreet my templates are also combined. Fixes #1141.
* Update JavaScript to handle right-to-left layout.Matthew Somerville2015-09-17-9/+1
|
* If only one category, be sure to fetch extras for it.Matthew Somerville2015-07-28-2/+8
|
* Rename map filtering GET param, remove unnecessary querySteven Day2015-06-29-14/+7
|
* Refresh map as soon as filters are changed on /my and /reportsDave Arter2015-06-29-0/+6
|
* Refresh map pins when status dropdown changes, if presentSteven Day2015-06-29-4/+7
|
* Pre-fill category on report form if map pins were filteredDave Arter2015-06-29-0/+14
|
* Change map pins with category fieldSteven Day2015-06-29-2/+17
| | | | | When the category dropdown is changed the map pins are re-requested from the server with the correct category in the URL.
* Add category filtering support to /ajax via 'category' GET paramDave Arter2015-06-29-1/+25
|
* Resize map pins based on zoom levelDave Arter2015-06-29-3/+46
| | | | When zoomed out, a smaller icon is used to stop the map getting too overcrowded.
* Support Stamen toner-lite and Bing Maps tiles.Matthew Somerville2015-02-23-1/+4
|
* Merge remote-tracking branch 'mhalden/fiksgatami-js-fiks'Matthew Somerville2015-01-13-3/+3
|\
| * Fixed show/hide pins and show/hide old for norwegian cobrand.fiksgatami-js-fiksMarius Halden2014-12-30-3/+3
| |
* | Revert most of "Experiment, no pins by default."Matthew Somerville2015-01-09-4/+0
|/ | | | | | This reverts most of commit 71b400a1f5991b9a693095c417aa61e274a5215d, leaving the skip-this-step CSS changes and the tweaks to the /ajax JSON output.
* [fixmystreet.com] Experiment, no pins by default.Matthew Somerville2014-10-17-0/+4
| | | | | | | | This changes the default flow to show no pins and a message about reporting, with the second tab displaying existing problems (and showing map pins). Those existing problems are the ones that would currently be on "problems on the map" followed by those currently on "problems nearby".
* send a virtual page view when we click on the mapStruan Donald2014-04-04-0/+4
| | | | Only if universal analytics turned on and on the fixmystreet cobrand
* Allow cobrands to set their own path to pin filesHakim Cassimally2014-03-25-4/+4
| | | | | | | | | New cobrand function of pin_path that sets the path to where the image files for pins are located. Defaults to /i This still means they need to use the same file names but they can at least put those in a cobrand directory rather than having to overwrite the files in /i or fudge it with pin_colour
* Tidy up panzoom bar placement.Matthew Somerville2013-10-25-2/+7
|
* Add Google OpenLayers-based map layer.Matthew Somerville2013-10-11-0/+4
|
* Upgrade main OpenLayers to 2.13.1.Matthew Somerville2013-10-11-64/+46
|
* Only need zoom altering if being used for OSM permalink; adjust for other uses.Matthew Somerville2013-02-21-2/+14
|
* Treat link from report page to around page as permalink to maintain state ↵Matthew Somerville2013-02-21-1/+13
| | | | better.
* Some jslint fixes.Matthew Somerville2013-02-04-14/+11
|
* Fix bad map JavaScript.Matthew Somerville2013-02-04-3/+3
|
* Zurich area unfilled with thick black outline (fixes a25).Matthew Somerville2013-01-31-0/+3
|
* Get remaining English hardcoded strings from JavaScript into translatable ↵Matthew Somerville2013-01-24-4/+4
| | | | template.
* More details to Details and in translation.Matthew Somerville2013-01-24-1/+1
|
* Add ability for multiple base map layers, add Zurich Stadtplan.Matthew Somerville2013-01-18-10/+15
|
* Allow hide/show pins in German to work.Matthew Somerville2013-01-18-1/+2
|
* Add some missing JS translatable strings, update .po files.Matthew Somerville2013-01-16-3/+3
|
* Write out layer explicitly so no AJAX request necessary and deal with all OL ↵Matthew Somerville2012-11-26-45/+31
| | | | options the same.
* Convert bounds from swiss to lat/lon so ajax doesn't breakSteven Day2012-11-26-1/+1
|
* Make controls and initial zoom level workSteven Day2012-11-26-1/+6
|
* Update map-OpenLayers.js to let it work with Zurich mapsSteven Day2012-11-26-25/+46
|
* Stop home button disappearing, fixes #280.Matthew Somerville2012-10-10-2/+2
|
* delete overlooked conflict marker?Dave Whiteland2012-06-25-1/+0
|
* Merge branch 'master' into fmb-read-onlyDave Whiteland2012-06-25-0/+2
|\ | | | | | | | | | | | | Conflicts: .gitignore bin/make_css perllib/FixMyStreet/Cobrand/FixMyStreet.pm
| * Merge branch 'barnet-newstyle'Struan Donald2012-06-08-0/+2
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .gitignore perllib/FixMyStreet/Cobrand/FixMyStreet.pm perllib/FixMyStreet/Cobrand/UKCouncils.pm templates/web/default/reports/council.html templates/web/fixmystreet/header.html templates/web/fixmystreet/report/display.html web/cobrands/bromley/layout.scss web/cobrands/fixmystreet/fixmystreet.js web/js/map-OpenLayers.js
| | * do not zoom out too far onby default on around page on mobile as it gets ↵Struan Donald2012-05-18-2/+13
| | | | | | | | | | | | very cluttered
| | * Work much better if reporting pin is clicked/dragged outside council boundaryStruan Donald2012-05-18-14/+31
| | |
| | * Merge branch 'master' into barnet-newstyleMatthew Somerville2012-05-17-4/+6
| | |\
| | * | sort out map scrolling when click where sidebar will beStruan Donald2012-05-08-0/+2
| | | |
* | | | Merge remote branch 'origin/master' into fmb-read-onlyDave Whiteland2012-05-29-8/+22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/send-reports perllib/FixMyStreet/Cobrand/Default.pm perllib/FixMyStreet/Cobrand/FixMyStreet.pm templates/web/fixmystreet/alert/index.html templates/web/fixmystreet/around/display_location.html web/cobrands/fixmystreet/_layout.scss web/js/map-OpenLayers.js
| * | | Merge branch 'master' into bromleyMatthew Somerville2012-05-23-1/+1
| |\ \ \
| | * | | Don't want this to happen if zoom is actually 0.Matthew Somerville2012-05-23-1/+1
| | | |/ | | |/|