From a902c514a1fd6e20b2650199fa2e999a87b0731c Mon Sep 17 00:00:00 2001 From: Paul Crossley Date: Thu, 22 Aug 2024 17:49:43 +0100 Subject: [PATCH] Update hardcoded extent name for Sussex Weald Constituency --- app/views/projects/_form.html.erb | 5 +++-- app/views/projects/edit.html.erb | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/views/projects/_form.html.erb b/app/views/projects/_form.html.erb index 7fb07273..0b03def7 100644 --- a/app/views/projects/_form.html.erb +++ b/app/views/projects/_form.html.erb @@ -61,9 +61,10 @@ const hardcoded_extents = [ - { id: -1, name: "✨Wealden", value: [ -4034.29345383, 6591225.55995304, 44295.78978777, 6647418.730598 ], layer_source: "shapefiles:westminster_const", layer_cql: "Name='Wealden Co Const'" }, - { id: -3, name: "✨Sussex Weald (2024)", value: [ 2080.11226102, 6592345.75156747, 44298.87523018, 6647418.1918753 ], layer_source: "shapefiles:bdline_gb__westminster_const", layer_cql: "Name='Sussex Weald Co Const'" }, + //{ id: -1, name: "✨Wealden", value: [ -4034.29345383, 6591225.55995304, 44295.78978777, 6647418.730598 ], layer_source: "shapefiles:westminster_const", layer_cql: "Name='Wealden Co Const'" }, + { id: -3, name: "✨Sussex Weald Constituency", value: [ 2080.11226102, 6592345.75156747, 44298.87523018, 6647418.1918753 ], layer_source: "shapefiles:bdline_gb__westminster_const", layer_cql: "Name='Sussex Weald Co Const'" }, { id: -2, name: "✨Brighton Pravilion", value: [ -21125.72504206, 6589221.35051539, -9227.54925854, 6602279.95570845 ], layer_source: "shapefiles:westminster_const", layer_cql: "Name='Brighton, Pavilion Boro Const'" }, + { id: -4, name: "✨Wealden District Council", value: [ -4034.29345383, 6574916.01820335, 50108.2508596, 6647418.730598 ], layer_source: "shapefiles:district_borough_unitary", layer_cql: "Name='Wealden District'" }, ] extents = [...extents, ...hardcoded_extents] diff --git a/app/views/projects/edit.html.erb b/app/views/projects/edit.html.erb index 6cf52cec..629e8e41 100644 --- a/app/views/projects/edit.html.erb +++ b/app/views/projects/edit.html.erb @@ -70,10 +70,11 @@ } const hardcoded_extents = [ - { id: -1, name: "✨Wealden", value: [ -4034.29345383, 6591225.55995304, 44295.78978777, 6647418.730598 ], layer_source: "shapefiles:westminster_const", layer_cql: "Name='Wealden Co Const'" }, - { id: -3, name: "✨Sussex Weald (2024)", value: [ 2080.11226102, 6592345.75156747, 44298.87523018, 6647418.1918753 ], layer_source: "shapefiles:bdline_gb__westminster_const", layer_cql: "Name='Sussex Weald Co Const'" }, + //{ id: -1, name: "✨Wealden", value: [ -4034.29345383, 6591225.55995304, 44295.78978777, 6647418.730598 ], layer_source: "shapefiles:westminster_const", layer_cql: "Name='Wealden Co Const'" }, + { id: -3, name: "✨Sussex Weald Constituency", value: [ 2080.11226102, 6592345.75156747, 44298.87523018, 6647418.1918753 ], layer_source: "shapefiles:bdline_gb__westminster_const", layer_cql: "Name='Sussex Weald Co Const'" }, { id: -2, name: "✨Brighton Pravilion", value: [ -21125.72504206, 6589221.35051539, -9227.54925854, 6602279.95570845 ], layer_source: "shapefiles:westminster_const", layer_cql: "Name='Brighton, Pavilion Boro Const'" }, - ] + { id: -4, name: "✨Wealden District Council", value: [ -4034.29345383, 6574916.01820335, 50108.2508596, 6647418.730598 ], layer_source: "shapefiles:district_borough_unitary", layer_cql: "Name='Wealden District'" }, + ] extents = [...extents, ...hardcoded_extents]