Skip to content

Commit

Permalink
Merge branch 'development' into test
Browse files Browse the repository at this point in the history
  • Loading branch information
John Shields authored and John Shields committed Nov 25, 2020
2 parents 8c863c4 + a2ddcd1 commit e8cfb74
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion server/routes/location.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,14 @@ module.exports = {
options: {
validate: {
query: joi.object({
q: joi.string().trim().max(200).required()
q: joi.string().trim().max(200).required(),
cz: joi.string(),
l: joi.string(),
btn: joi.string(),
ext: joi.string(),
fid: joi.string(),
lyr: joi.string(),
v: joi.string()
}),
failAction: (request, h, err) => {
console.error('Location search error: Invalid or no string input.')
Expand Down
2 changes: 1 addition & 1 deletion server/src/js/pages/station.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ window.flood.utils.addBrowserBackButton()

// Create LiveMap
window.flood.maps.createLiveMap('map', {
btnText: '<span>View on map</span>',
btnText: '<span>View map</span>',
btnClasses: 'defra-button-map-s',
layers: 'mv,sh,st',
centre: JSON.parse(window.flood.model.station.coordinates).coordinates,
Expand Down

0 comments on commit e8cfb74

Please sign in to comment.