aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2020-01-14 10:30:19 +0000
committerStruan Donald <struan@exo.org.uk>2020-02-17 14:10:08 +0000
commitfb2c932b3373cd29f7a9a4899d14beb3209a9f5c (patch)
tree6918dc86e23cff506977679da709014a3970920e /web
parent26fba931b0da2ee035cb73f8288bc876d849d057 (diff)
[Northamptonshire] update alloy asset code for WMS
Hard code the resolution as it only ever used the one value which isn't the same in the 27700 based map. This is to avoid pulling in asset groups.
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet-uk-councils/alloy.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet-uk-councils/alloy.js b/web/cobrands/fixmystreet-uk-councils/alloy.js
index 77494f975..ace0062de 100644
--- a/web/cobrands/fixmystreet-uk-councils/alloy.js
+++ b/web/cobrands/fixmystreet-uk-councils/alloy.js
@@ -55,7 +55,9 @@ OpenLayers.Protocol.Alloy = OpenLayers.Class(OpenLayers.Protocol.HTTP, {
getTileCoord: function(bounds, maxExtent, map, reverse) {
var origin = new OpenLayers.LonLat(maxExtent.left, maxExtent.top);
- var resolution = map.getResolutionForZoom(3);
+ // hard code this number as we want to avoid fetching asset groups
+ // which happens at more zoomed out levels
+ var resolution = 2.388657133579254;
var adjustX = reverse ? 0.5 : 0;
var adjustY = reverse ? 0 : 0.5;