diff options
author | Dave Arter <davea@mysociety.org> | 2017-08-14 12:32:34 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2017-08-14 12:32:34 +0100 |
commit | 931e388fd8ed8d968e62155457c098c4a4dfe933 (patch) | |
tree | 35ec748b62b3d1fd291a0a145896b97382120b26 /web/js/map-OpenStreetMap.js | |
parent | 8e320beadae7cbc65967fc851f2448bbb1c7b2e0 (diff) |
[Zurich] Fix map on /reports
A seemingly unrelated change in ef6ffbdb was causing JS errors
on the /reports page which meant the map loading spinner
was permanently present. This commit fixes that, and also fixes
another bug which was uncovered where the ?ajax=1 param was
being ignored by the Zürich /reports page, leading to HTML
being returned and another JS error.
The call to `new OpenLayers.Bounds` in
OpenLayers.Strategy.FixMyStreet.getMapBounds was causing
three of the 4 bounds params to be lost when run on OpenLayers
2.11, as this version doesn’t accept an array to the Bounds
constructor. This in turn was using an invalid `bbox` parameter
(only the west value was present) in the AJAX call to /reports
which returned a 500 error. This then crashed the JS and caused
the loading spinner to get stuck.
Diffstat (limited to 'web/js/map-OpenStreetMap.js')
0 files changed, 0 insertions, 0 deletions