aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-google.js
Commit message (Collapse)AuthorAgeLines
* Allow one more zoom level on most map types.M Somerville2020-08-14-1/+1
| | | | Not on StreetView/OpenMap Local based, which are not available.
* Restrict lat/lon in URL/fields to 6dp.Matthew Somerville2020-01-31-2/+2
|
* Add JSHint configuration, tidy up any warnings.Matthew Somerville2018-01-10-1/+1
|
* Second, more prominent Hide Pins linkZarino Zappia2017-11-27-3/+6
| | | | An experiment towards fixing #525.
* Remove Show all pins link and on_map_list_limit.Matthew Somerville2017-11-06-37/+0
| | | | | /around will now show all reports all the time, but we are about to introduce pagination to stop that.
* Have /around ajax use same format as others.Matthew Somerville2017-11-02-1/+2
| | | | | Both /reports and /my work by using the same URL with ajax=1. We should use the same on /around for consistency.
* Refactor /around list code to share with others.Matthew Somerville2017-08-17-6/+3
| | | | | Both /reports and /my share an ID and a /reports/ajax function, use these also on /around (and share ajax/non-ajax code).
* Use standard JS translation for show/hide pins.Matthew Somerville2017-08-03-18/+9
|
* [FixaMinGata] Consolidate with upstream.Jon Kristensen2017-07-07-1/+2
| | | | | Add hook for post-title field content in report form. Update translations.
* 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