From 00ef030c2c1ffba12f4f9b085cedc5592154e4fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?hagjoon=28=EC=9D=B4=ED=95=99=EC=A4=80=29?= Date: Thu, 29 Sep 2022 15:08:31 +0900 Subject: [PATCH] =?UTF-8?q?Windy=20view=20=EC=BD=98=EC=86=94=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/weather/WeatherView.js | 47 +++++++++++--------------------- 1 file changed, 16 insertions(+), 31 deletions(-) diff --git a/src/views/weather/WeatherView.js b/src/views/weather/WeatherView.js index b5ae9c0..8b62b5b 100644 --- a/src/views/weather/WeatherView.js +++ b/src/views/weather/WeatherView.js @@ -1,36 +1,21 @@ -import {WINDY_KEY} from '../../configs/constants' +import { WINDY_KEY } from '../../configs/constants'; export const WeatherView = () => { - const options = { - // Required: API key - key:WINDY_KEY, // REPLACE WITH YOUR KEY !!! + const options = { + // Required: API key + key: WINDY_KEY // REPLACE WITH YOUR KEY !!! - // Put additional console output + // Put additional console output - // Optional: Initial state of the map - lat: 37.12, - lon: 130.11, - zoom: 7, - }; + // Optional: Initial state of the map + }; - //Initialize Windy API - windyInit(options, windyAPI => { - // windyAPI is ready, and contain 'map', 'store', - // 'picker' and other usefull stuff - // const { map } = windyAPI; - // .map is instance of Leaflet map - - // L.popup() - // .setLatLng([37.12, 130.11]) - // .setContent('Hello World') - // .openOn(map); - - }); - - - return ( - <> - - - ) -} + return ( + <> + + + ); +}; export default WeatherView;