| Commit message (Collapse) | Author | Age | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Co-authored-by: Dave Arter <davea@mysociety.org>
Co-authored-by: Matthew Somerville <matthew@mysociety.org>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We use Dropzone (the photo upload library) to shrink photos client-side
before uploading in the background and display thumbnails. For the
resized upload, Dropzone restores the original Exif data, including
orientation, so it can be correctly oriented server-side; for a
thumbnail, it orients the image itself for immediate display.
Recently, browsers have started honouring Exif orientation much more
widely (Chrome 81+ and Firefox 77+ both now do it by default). This
means the data Dropzone gets from a resize has already been oriented
according to the Exif orientation data. Then Dropzone either looks at
the orientation to correct for display (thumbnail), or adds back the
Exif orientation data (upload) – in both cases, this leads to a double
implementation of the orientation, and an incorrect display.
To fix this, if we detect we are on a modern browser, we do not try and
fix orientation ourself [1], and in all cases we do not add any Exif
data back in (we only strip it server-side anyway). Conversely, that
means on a non-modern browser, we always perform a manual orientation
because no Exif data will be being sent server-side.
Also includes a fix to the orientation code [2] which wouldn't be
noticed in thumbnail generation as they are square, but could be now we
may be orienting full size photos.
[1] https://gitlab.com/meno/dropzone/-/merge_requests/80
[2] https://gitlab.com/meno/dropzone/-/merge_requests/45
|
| |
|
| |
|
|
|
|
| |
New unitary branding, and remove County from name.
|
|
|
|
|
| |
Without this check, it is possible for calls to overlap and end up with
a situation whereby both the duplicate list and the form are hidden.
|
| |
|
| |
|
|
|
|
|
| |
Basic config and setup files for using WMS based map tiles. These still
require config in appropriate cobrand perl and javascript files
|
| |
|
|
|
|
|
| |
The presence of the ‘mouseenter’ handler meant two taps were required
to expand the report preview.
|
|
|
|
| |
For #2668.
|
|
|
|
|
| |
We are overriding quite a bit of it and not using other bits,
so it will be less code to only have our own Control.
|
| |
|
|\ |
|
| | |
|
| | |
|
|/
|
|
|
|
| |
Attempts to allow for CSS animations by not destroying the
marker's DOM element each time a location update is received -
with limited success.
|
|
|
|
|
|
| |
Now that both Peterborough and Bexley are using MasterMap data we can
combine them into a single "MasterMap" map type to reduce code
duplication.
|
|
|
|
|
| |
This adds a new "MasterMap" map type which uses tiles from Tilma to
display MasterMap data.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
As there are two category drop-downs in this situation (one in the
hidden reporting form, one in the inspect form), the correct entry
needs to be specified.
|
|/ |
|
| |
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| |
| | |
The base layer does this transformation,
so I am not sure what this was for.
|
| |
| |
| |
| |
| |
| | |
Change the way we set the BBOX strategy for the map layer as otherwise
when we check for bbox_strategy in display_around this is set but has
not been associated with a layer so .activate fails.
|
|/ |
|
|\ |
|
| | |
|
|/
|
|
| |
We retain the code as it is updating the URL on map move.
|
|
|
|
| |
Also update lat/lon parameters to match JS.
|
|\ |
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
| |
If autofill on Chrome is turned on and has saved the user's login it
can autofill the user's email address in the report title, so add
validation to make sure the title does not look like an email.
Fixes #2570
|
|
|
|
|
| |
Add more checking for map things so e.g. on a skipped map page
we stop getting JavaScript errors given there is no map present.
|
| |
|
| |
|
|
|
|
|
| |
Sometimes this can be a long way down,
if e.g. extra Open311 questions above.
|
|
|
|
|
| |
Add a WMTS config to use Buckinghamshire's own map tiles to display
house numbers.
|
|
|
|
|
|
| |
Run immediately, not onready, so the category change listener is in
place; listen to a better event, removing need for a debouncer; don't
look up if empty category.
|