From 9c27beed39e984da09b067566793f37afa9f5a07 Mon Sep 17 00:00:00 2001 From: Logan Williams Date: Wed, 5 Apr 2023 10:36:48 +0200 Subject: [PATCH] Linting --- frontend/src/store/index.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/frontend/src/store/index.js b/frontend/src/store/index.js index 2ea7cfc..d15b260 100644 --- a/frontend/src/store/index.js +++ b/frontend/src/store/index.js @@ -184,7 +184,7 @@ export default new Vuex.Store({ } }); }, - searchLocation({ state, commit }, search_text) { + searchLocation({ commit }, search_text) { fetch( `https://api.mapbox.com/geocoding/v5/mapbox.places/${search_text}.json?access_token=pk.eyJ1IjoiYmVsbGluZ2NhdC1tYXBib3giLCJhIjoiY2tleW0wbWliMDA1cTJ5bzdkbTRraHgwZSJ9.GJQkjPzj8554VhR5SPsfJg` ) @@ -199,12 +199,16 @@ export default new Vuex.Store({ data.features[0].bbox[2] - data.features[0].bbox[0], data.features[0].bbox[3] - data.features[0].bbox[1] ); - console.log(maxBounds, Math.log2(maxBounds), Math.round(Math.log2(maxBounds) + 9)); + console.log( + maxBounds, + Math.log2(maxBounds), + Math.round(Math.log2(maxBounds) + 9) + ); - commit("setMapPosition", {center: [ - data.features[0].center[1], - data.features[0].center[0], - ], zoom: Math.round(9 - Math.log2(maxBounds))}); + commit("setMapPosition", { + center: [data.features[0].center[1], data.features[0].center[0]], + zoom: Math.round(9 - Math.log2(maxBounds)), + }); }); }, },