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
.zip
file 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
js
folder inmain
folder. - 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_ID
andCLIENT_SECRET
for that app. These unique ID's will be used for fetching data fromfoursquare.com
usingAJAX
.
- Use the above mentioned links and append them in
Index.html
.
- Create a
style.css
file incss folder
with all required styling and link it toIndex.html
. - Use the above mentioned link for
Bootstrap
and link it inIndex.html
. - Use the above mentioned link for
Google Fonts
and link it inIndex.html
andstyle.css
.
Create
initMap
andnavToggle
functions ininit.js
. Now inapp.js
, Create an object of eating joints with their name, coordinates and unique Id generated from foursquare.com. CreateViewmodel
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
usingKnockout Javascript
. - Show and Hide Markers.
- Create, toggle and add features to
Drawing Toolbar
.
App is completed! Have fun exploring delicious places!