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.
- The aim of this Project is to make a "Map of a Neighborhood" showing famous local Eating Joints with their ratings.
- Google Maps API to load map.
- Foursquare API to fetch data for the eating joints.
- Foursquare API Explorer to fetch ratings(or other details if required).
- Knockout Javascript to bind data.
- jQuery (Javascript Library) for easier coding of javascript.
- Bootstrap to make the page responsive.
- Google Fonts to add stylish text.
- Color-Hex to add hexa-decimal color codes in css.
- HTML Beautifier to Beautify HTML.
- CSS Beautifier to Beautify CSS.
- JS Beautifier to Beautify JS.
- Online Markdown Editor to test
README.md. - Google Maps Animation to animate markers.
- 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.
Open the project through the
.zipfile provided and extract file. To openIndex.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
jsfolder inmainfolder. - Open
app.js.
- 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 provideCLIENT_IDandCLIENT_SECRETfor that app. These unique ID's will be used for fetching data fromfoursquare.comusingAJAX.
- Use the above mentioned links and append them in
Index.html.
- Create a
style.cssfile incss folderwith all required styling and link it toIndex.html. - Use the above mentioned link for
Bootstrapand link it inIndex.html. - Use the above mentioned link for
Google Fontsand link it inIndex.htmlandstyle.css.
Create
initMapandnavTogglefunctions ininit.js. Now inapp.js, Create an object of eating joints with their name, coordinates and unique Id generated from foursquare.com. CreateViewmodelfunction with functions to:
- Create Markers.
- Fetch information for Markers from foursquare.com using
AJAXrequest. - Create Infowindows with relevent information.
- Display information fetched from Foursquare API Explorer on clicking them.
- Style Markers.
- Show selected Marker.
- Bind data for
Search BarusingKnockout Javascript. - Show and Hide Markers.
- Create, toggle and add features to
Drawing Toolbar.
App is completed! Have fun exploring delicious places!