| Commit message (Collapse) | Author | Age | Lines |
... | |
|
|
|
| |
Use $.each rather than .forEach.
|
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Update the URL whenever location of pin is updated (first time, drag, or
reclick), make sure it works when clicking back.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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".
|
| |
| |
| |
| |
| | |
On mobile, the notes in `#report-a-problem-sidebar` are hidden by
default, and can be toggled using the `.rap-notes-trigger`.
|
| | |
|
| | |
|
| |
| |
| |
| | |
Split big functions into smaller more descriptive ones.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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.
|
| |
| |
| |
| |
| | |
This also allows the map to work in a proxied admin.
Upgrade Angus OL to master branch code.
|
|/
|
|
|
| |
No need for this to be generated via a template, it only differs
occasionally by cobrand.
|
|
|
|
|
|
| |
Include a patch file, applied to Dropzone as of version e524e03c, that
also includes our previous Opera patch from 445e9a3d. The new minified
file is our cut-down exif.js plus the patched dropzone.js.
|
|
|
|
|
|
|
|
|
| |
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.
|
|\ |
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
Always centre the map on the new point when creating a new report. This
will be helpful when the map element can change width to accommodate the
.with-notes variant, is easier than the previous method, and feels very
natural.
|
| |
|
|
|
|
|
| |
We previously used !important to override them in the CSS, but better to
prevent them being set in the JavaScript in the first place.
|
|
|
|
| |
Specifically to get the https://github.com/openlayers/ol2/pull/1418 fix.
|
|
|
|
|
|
|
|
|
|
|
| |
This rearranges the moderation UI into logical chunks,
and improves the 'revert to original' checkboxes by:
- hiding them unless there's some original text to revert
to
- displaying the text that will be reverted to in the
appropriate input fields when checked.
Part of mysociety/FixMyStreet-Commercial#731
|
| |
|
|
|
|
| |
This uses the master branch of OpenLayers 2.
|
|\ |
|
| |
| |
| |
| | |
And associated, e.g. nothing references fixmystreet-old-box.js any more.
|
| | |
|
|/ |
|
| |
|
|
|
|
| |
This stops the front page header nesting skipping a level.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Angus provide a WFS endpoint for their existing streetlight assets
and known faults.
This commit:
- Displays clickable markers when the 'street lighting' category is selected
on the report a problem page.
- Displays known faults on the map
- Includes a custom OpenLayers build for the Angus cobrand that
includes WFS support
The custom code for adding the layers to the map is within
position_map.js, as this seemed to be currently the best place
for cobrand-specific map logic.
|
|
|
|
|
|
|
| |
Because the list of categories is reloaded when changing the location of an
in-progress report, it was possible for the category the user had selected
to be un-selected. This improves the situation by re-selecting that category
if it appears in the new list.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This was added along with pin/sidebar highlighting in b71d042e,
but has proved distracting/confusing.
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
We had a report that our file uploader (dropzone) wasn't working in
Opera on a Lumia Windows phone. It looks like this version of Opera is
saying it has capability but doesn't. The file uploader already
blacklists Opera 12 on a Macintosh, so do the same on Windows Phone
(Opera Mini 9 has a version 12 identifier in its user agent string).
The full User Agent string was Opera/9.80 (Windows Phone; Opera
Mini/9.0.0/37.7751; U; en) Presto/2.12.423 Version/12.16
|
| |
|
|
|
|
| |
Makes the flow more like new reporting.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Three file inputs, progressively enhanced with dropzone.
This moves the photo input higher up, so that photos can upload while
you're filling out the form. It standardises and improves photo error
handling.
[fixmystreet.com] Guidance for what photos should and shouldn’t include.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A repeat of cc6a278; Google have now dropped version 3.20 of their Maps
API, which we were using. Version 3.21 is the oldest available version,
and only appears to work if you start off in hybrid view.
According to https://developers.google.com/maps/documentation/javascript/versions,
in three months 3.21 will be dropped; 3.22 does not currently work with
our OpenLayers code at all. Looking at
http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/google-v3.html
the maps do still appear if you first switch to the Satellite layer. So
investigation will be needed to find out why that happens and if it can
be worked around.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Generally, a rewrite of issue-list-a to item-list--reports or
item-list--wards (two different uses) and issue-list to
item-list--updates, with subsequent renames/changes to children.
For those cobrands using a different list showing a pin icon, use
item-list__item--with-pin to stop needing to override existing classes.
Fix a variety of niggling issues e.e ward list display, or overloading
of the .text class.
|
|
|
|
|
|
|
| |
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.
|
| |
|