It is a user friendly App for displaying the annotation of key locations nearby my living space.
The structure is similiar to Cat Clicks App: https://github.com/JamesWangbrothers/Cat-Click-App.git
- Integrate the google map API https://developers.google.com/maps/documentation/javascript/
- Build three major parts: search bar, key locations, map markers
- search bar: The search has the functino of filtering the model, which decide which part of the model is going to show. when typing words in search bar, key location and marker gets filtered and updated display immediately. Additional feature: auto-completion when search for something.
- key location: takes the 10 names and items that I have defined in the model, and put them in the list view. additionaly when click the item marker, it highlights the particular item in the map, so you easily find these items in the map
- markers: when click the selected marker in the map, it pops out a style and a window to show the little description of the item. Third-part API is used here to show the info.
- Error handling: adding Error handling for map is not displayed and location is not found
- Build the responsive design:
- using the bootstrap mobile-first framework
- adding the event listener "resize" for responsive map
- Add the CSS styles for animation and display.
- optimized the critical rendering path
- run HTML validator: https://validator.w3.org/ and CSS validator: http://www.css-validator.org/ to fix errors
- submit for feedback and revise
- Check out the repository or Download or fork the application.
- Select index.html to start the app.
- Use filter box to filter list items and map markers
- Select a list item or map marker to open an info window describing the marker.
Additionally,To inspect the site on your phone, you can run a local server
$> cd /path/to/your-project-folder
$> python -m SimpleHTTPServer 8080
and Open a browser and visit localhost:8080
OR
Download and install ngrok to make your local server accessible remotely.
$> cd /path/to/your-project-folder
$> ngrok http 8080
and open a browser and visit localhost:8080
The map shows the neighborhood area where I work and live. If you want either want to find out more about myself or the location, please feel free to click the "here" and the bottom of the page and send a email to me to keep in touch! Otherwise, please feel free to play with the app and provide me a feedback on how to improve it or what you think about it if you like. The app is easily to play with, you can type anything in the search bar, and the result will be filtered and displayed on the list and map. And if you click he list or the marker on the map, the detail information will pop up! Enjoy and cheer up!