Complete a small task as below using or Vue:
Create a web page includes:
- A button to support user location acquisition from browser.
- A module which allows user to input the name of a location. (Searching feature is triggered by both button click, and press enter key on the keyboard)
- Display the location on the map and add a marker to each searched location every time when the location is changed.
- A table with pagination to show all searched places:
- It displays a maximum of 10 records on each page.
- A checkbox at the beginning of each row to allow user to select multiple records at the same time.
- A delete button on the top of it to delete all selected records as well as the marker on the map.
- Display the time zone and local time of the latest searched location.
Frameworks | Google Maps library | UI library |
---|---|---|
Nuxt | Map | Element Plus |
Vue 3 | Autocomplete | Tailwind CSS |
SCSS | Search Box | |
Typescript | Time Zone | |
infoWindow |
-
Add your Google GeoAPIKey to
nuxt.config.ts
file, under publicRuntimeConfig > GeoAPIKey -
Make sure to install the dependencies
yarn install
- Start the development server on http://localhost:3000
yarn dev
- Build the application for production:
yarn build
yarn start