Git Product home page Git Product logo

neighbourhood-map's Introduction

Gene's Restaurant List - Stuttgart

Udacity Full Stack Web Developer

Project 5 - Neighbourhood Map

by Gene Ting-Chun Kao

Demo website

https://genekao.github.io/neighbourhood-map/

About

This is a single page application featuring a map of listing my favourite restaurants in Stuttgart using Google Maps API together with Foursquare API. The application is responsive and has a hamburger icon on the top left corner, which expends a menu bar for extra functionality to search and author's info. You will see street panorama view by clicking the list on the menu bar. While clicking the marker on the map, you will see general information provided by Foursquare and an extra comment from me.

What you need to know to read the code.

Code style

For HTML, CSS and JavaScript code style, Udacity Frontend Nanodegree Style Guide is used.

Files structure

.
├── README.md
├── css
│   └── style.css
├── index.html
└── js
    ├── app.js
    ├── locations.js
    ├── map-styles.js
    └── utils.js

To run the code

$ git clone https://github.com/GeneKao/neighbourhood-map.git
$ cd neighbourhood-map
$ python3 -m http.server #(Or simply opne index.html in a web browser.)

After cloning the repo, you will have to insert your own Google Map API key manually at the end of index.html.

<script async defer
    src="https://maps.googleapis.com/maps/api/js?libraries=places,geometry&key=YOUR_KEY_HERE&v=3&callback=initMap">
</script>

Replace YOUR_KEY_HERE with your own API key.

Screenshots

0_overview


1_click


2_search


Code reference

Some starter code was from the Udacity's course Udacity Google Maps APIs by Google and repo.

For the basic layout, my HTML and CSS refer some part of the code from this example.

Map style using Neil's Chef lobster theme from SNAZZY MAPS. You can also change style simply download any template and replace my setting in map-styles.js.

neighbourhood-map's People

Contributors

genekao avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.