Giter Club home page Giter Club logo

neighborhood-map's Introduction

Neighborhood-Map

Harsimar Singh


  • Develop a single-page application featuring a map of your neighborhood.
  • The live streaming of project.
  • Project can be viewed at my Github Repository.

Project Details

How do I complete this project?

  • The aim of this Project is to make a "Map of a Neighborhood" showing famous local Eating Joints with their ratings.

Tools required:

References:

Udacity's Github Repository

  • This repository was provided in Lesson 17.
  • References for /* -----S-H-O-W---A-N-D---H-I-D-E---F-U-N-C-T-I-O-N-S---F-O-R---M-A-R-K-E-R-S /, / -----M-A-R-K-E-R-----S-T-Y-L-I-N-G----- /, / -----D-R-A-W-I-N-G-----T-O-O-L-B-A-R----- */ were taken from here.

References for Knockout Javascript were taken from here. References for creating Navbar from here.

Steps to run the app:

Open the project through the .zip file provided and extract file. To open Index.html:

  • Open the main folder.
  • Open Index.html.
  • Click on the list or the markers on map to see ratings for that particular Eating Joint.

To open app.js:

  • Open js folder in main folder.
  • Open app.js.

Steps to make the app:

Part 1: Google Maps API and Foursquare API

  • Generate a unique key from Google Maps API and create Index.html.
  • Set the center and zoom accordingly.
  • Sign up on foursquare.com, create a new app which which provide CLIENT_ID and CLIENT_SECRET for that app. These unique ID's will be used for fetching data from foursquare.com using AJAX.

Part 2: Include jQuery and Knockout Javascript

  • Use the above mentioned links and append them in Index.html.

Part 3: Include CSS file, Bootstrap library and Google Fonts

  • Create a style.css file in css folder with all required styling and link it to Index.html.
  • Use the above mentioned link for Bootstrap and link it in Index.html.
  • Use the above mentioned link for Google Fonts and link it in Index.html and style.css.

Part 4: Creating and coding Javascript in app.js and init.js

Create initMap and navToggle functions in init.js. Now in app.js, Create an object of eating joints with their name, coordinates and unique Id generated from foursquare.com. Create Viewmodel function with functions to:

  • Create Markers.
  • Fetch information for Markers from foursquare.com using AJAX request.
  • Create Infowindows with relevent information.
  • Display information fetched from Foursquare API Explorer on clicking them.
  • Style Markers.
  • Show selected Marker.
  • Bind data for Search Bar using Knockout Javascript.
  • Show and Hide Markers.
  • Create, toggle and add features to Drawing Toolbar.

App is completed! Have fun exploring delicious places!

neighborhood-map's People

Contributors

harsimarsingh8 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.