aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-google.js
Commit message (Collapse)AuthorAgeLines
* Display nearby candidate reports when marking as duplicateDave Arter2016-12-13-0/+3
| | | | | | | | - Use Problem->pin_data for single report page - Promote markers_highlight to fixmystreet.maps API We want to highlight map pins on the duplicate report selection UI, so let's use what's already there instead of writing something new. - Make sure duplicate report pins aren’t draggable
* Move to using pushState for new report.Zarino Zappia2016-07-11-24/+26
| | | | | Update the URL whenever location of pin is updated (first time, drag, or reclick), make sure it works when clicking back.
* Load in report details on around page via ajax.Zarino Zappia2016-07-11-1/+1
| | | | | | | | | | | Include URL changing, using history.pushState. Show a larger marker icon for the selected report. Make sure title is updated, and correct sub_map_links are shown. The /report/new template is now wrapped in a <div id="side-form"> rather than <div id="side"> for consistency with the /around page, which keeps display_all_reports_in_area() simpler, because it can always assume "#side" means "list of reports".
* Simplify "rap-notes" visibility togglingZarino Zappia2016-07-11-5/+0
| | | | | On mobile, the notes in `#report-a-problem-sidebar` are hidden by default, and can be toggled using the `.rap-notes-trigger`.
* Tidy up JavaScript functions.Matthew Somerville2016-07-11-269/+228
| | | | Split big functions into smaller more descriptive ones.
* Absolutely position map pages.Zarino Zappia2016-06-03-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This simplifies the page layout and code. We add a new #map_sidebar for sidebar positioning, and a $mappage-header-height (defaulting to 4em) variable. We no longer need: * position_map_box; * map_fix; * special visual centre calculation; or * custom pan zoom positioning. As the sidebar now scrolls by itself and nothing can extend outside: * The big-green-banner is set to 100% width (with negative margins no longer required); * For cobrands that have an overhanging sidebar (e.g. Zurich), we add a .with-notes variant that adds a second column to the sidebar, perfect for containing secondary notes about the form. The resizing of the banner also required some tweaking to the size of the chevron-white SVG images. Update the $.fn.drawer() method for the new layout. Works well in IE7+8, and degrades gracefully in IE6. For IE7, we remove the existing z-index hacks, and put a new, simpler, one in, and fix a CSS bug that was hiding the map. Various cobrands are updated to adapt to the changes.
* Update JavaScript to handle right-to-left layout.Matthew Somerville2015-09-17-4/+2
|
* Fixed Google map marker drag issue caused by inproper variable naming.Chee Leong2013-06-27-4/+4
|
* Improve Google Maps support somewhat.Matthew Somerville2013-06-06-10/+317
|
* Move JS to jQuery.Matthew Somerville2011-07-21-1/+1
|
* Fixes to other map types to work with lat/lon. Split OSM JavaScript into ↵Matthew Somerville2011-03-09-1/+1
| | | | core OpenLayers bits and OSM config bit.
* Google Maps package.Matthew Somerville2010-12-04-0/+22