| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
|
|
| |
Previously, it was unclear how many arguments the function took. When
running tests I saw the error:
Too many arguments for Cpanel::JSON::XS::encode_json at
perllib/FixMyStreet/Map/WMTSBase.pm line 217, near "}"
|
|
|
|
|
|
| |
Fixes #2242.
Co-authored-by: Matthew Somerville <matthew@mysociety.org>
|
|
|
|
| |
Uses same parsing of roadworks messages as Lincs
|
|
|
|
|
| |
call ZOOM_LEVELS and MIN_ZOOM_LEVELS using self so that we can override
them in a subclass.
|
| |
|
| |
|
| |
|
|
|
|
| |
Bing no longer shows it at zoom level 11.
|
|
|
|
|
|
|
| |
Also add body name to layer defaults, so they are only used where appropriate.
Switch mapit area javascript calls to GeoJSON, so we can drop KML support in
OpenLayers.wfs.js which saves a small amount of bandwidth.
|
|
|
|
| |
[fixmystreet.com] Update to use OS OpenMap Local tiles.
|
|
|
|
|
| |
Adds street lights, park bins, trees, rights of way,
and TfL red route asset layers.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BANES have some staff-only assets, so this adds a cobrand hook
to enable extra JS to be included on the page for staff users.
- Add custom OpenLayers build with GeoJSON support
- Add grit bins/street lights/LLPG asset layers
- Displays non-BANES street light assets in grey
- Add adopted highways to map
This means USRNs will be set for reports made by members of the public.
To keep the map simple, however, the highways layer is invisible to
non-staff users.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Bromley uses jQuery for its A-Z on all pages; only load Bristol map
JavaScript on map pages (same as Angus); drop Oxfordshire JS use of
jQuery; fix Zurich load order; and improve jQuery checking in other
JavaScript.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
The upgrade to OpenLayers in 31b8337e3 was not accompanied by fixing
the tileOrigin manually tweaked as an old workaround. This moved the
map c. 100m out of alignment.
Bristol fixed this in a7f60abb by adding topLeftCorners, but this is
better done by fixing origin_x/y.
|
|
|
|
|
| |
The change to remove inline JavaScript stopped the Bromley-specific
tiles from working. Put them back with an extra JavaScript file.
|
| |
|
|
|
|
|
|
| |
@scales does not include the hidden zoom levels, so we need to offset
the matrix ID to be correct in the URL but not do so to calculate the
tile row and column.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- 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 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.
|
| |
|
|
|
|
| |
Fixes #1286.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Includes a small map at the top of the first page and a second
full-width map on a separate page.
- upgrades tiles to the new 512px ones already used by JS
as implemented in https://github.com/mysociety/FixMyStreet-Commercial/issues/668
- Uses jQuery to clone a copy of the "noscript" map elsewhere into
the DOM, because the original is too far from where we need it.
- extracts maps/openlayers.html to call maps/noscript_map.html
- specialises the Zurich version to allow a richer structure to be
returned, including arbitrary sized map
- Map::Zurich now returns nearly arbitrary sized map tiles
- second larger map is prepared (only for admin/report_edit)
See mysociety/FixMyStreet-Commercial#677
|
|
|
|
|
| |
- Refactor map tile size into a constant
- Update map tiles to use new Zurich WMTS server directly instead of Apache proxy
|
|
|
|
|
|
|
| |
Use a central get_param and get_param_list functions dependent on
whether we're after a scalar or a list (almost always a scalar). This
prevents any possibility of confusion where param() could return a list,
or params->{} an arrayref.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Make the FMS map tile URLs be scheme independent,
and only use one level of subdomain.
|
|\
| |
| |
| |
| |
| |
| | |
Conflicts:
bin/update-schema
locale/sv_SE.UTF-8/LC_MESSAGES/FixMyStreet.po
perllib/FixMyStreet/DB/Result/Body.pm
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|