Combines Google Maps API with Flickr's API to create an experience for any users who wish to explore the world around them through others photography and inspiration
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



myPhotoAtlas allows users to search and save photos and locations around the world. It is an application that is geared toward photography enthusiasts and adventurous travelers explore a new location. Our final product allows the user to search any location and returns a gallery of photos taken within a specific radius of that location. Additional features include the ability to get directions from Google Maps and save/delete locations and images to the my ‘myPlaces’ page. In the future we would like to incorporate a backend server and database, which will allow the user to login to their own profile. We would also like to import another API which will give the user information on their chosen locations (i.e. wikipedia etc.).

The Team:

Sarah Abbey:

Primary team role: JavaScript/jQuery Function-writer, prototype/concepting
Contributions: JavaScript and jQuery for myPlaces and Search pages. Implemented our streach goal of allowing a user to save places in local storage and displaying those locations on the myPlaces page. Developed jQuery and JavaScript functions to efficently obtain information from Flickr API and Google Maps API, including geocoding and reverse geocoding.

Katie Lane:

Primary team role: Front-end markup and styling, prototype/concepting, JavaScript Function-write
Contributions: Main focus was HTML, CSS, JavaScript and jQuery for myPlaces and Search pages. Focused our Flickr API search after running into roadblocks. Deployed responsive design while collaborating with team as well as consistent design throughout all pages, navigation, and footers.

Stephanie Asmar:

Primary team role: Front-end markup and styling, prototype/concepting, Scrum/Agile
Contributions: HTML, CSS & JavaScript for home and about pages, concepting/prototyping of product idea. Guided overall design and usability. Tested responsive design and implemented changes with team as needed. Ensured consistent design throughout website.

What we used:


  • HTML5
  • CSS
  • JavaScript
  • JSON


  • jQuery
  • Bootstrap
  • Google (GeoCode, Maps)
  • Flickr
  • Favicon
  • AJAX

MVP (Minimum Viable Product):

  • Photo search gallery to feature photography across the United States
  • Home page with wonderful images implemented with a carousel
  • Google map
  • Responsive design

Stretch Goals Completed

  • Using AJAX / localstorage to save myPlaces
  • Map with functionality: info window pop up, locating where picture was taken, marking location on map, displaying multiple markers at a time, adjusting map depending where user was searching
  • Implementing Google Autocomplete
  • Hiding and showing of map

Stretch Goals Future

  • Creating PostgreSQL database requiring user login to enable myPlaces to be available from different devices

Challenges & Solutions:

Some of the biggest challenges we faced with this project build included:

Challenge: Finding quality APIs that returned necessary data. Used 3-4 before we settled on the final ones.
Solution: Learned much more about APIs. What to look for, how to search, how to retrieve the data we wanted.

Challenge: Understanding Google Maps API, using their language.
Solution: Read user documentation.

Challenge: Photo tags, getting good photos from Flickr API
Solution: Trial and error, reading up on user documentation, tutorials.

Code Snippets:

Showcases how we worked with Flickr's API and the specificity they require when working with their database.

// Searches Flickr API for images based on latitude and longitude from Google Search, sends pictues to createPicture function
function photoSearch(latLon) {

    // gets radius, units and tags
    var radius = getRadius();
    var units = getUnits();
    var tags = chooseTags();

    //Creates error function w/message to be returned if no pictures found
    var errorPics = errorMessage('No pictures were found for this location, radius, and tags, please try your search again.');

    // Adds in tags. Tags are essential in the search process,as well as radius units. These aspects will be changed later to get respnoses from the user
    var resp = $.get("" + FLICKR_API_KEY + "&lat=" + latLon["lat"] + "&lon=" + latLon["lng"]+ "&tags=" + tags + "&tag_mode=any&radius=" + radius + "&radius_units=" + units + "&format=json&nojsoncallback=1");

This snippet shows the simple, yet customizable, carousel featured on our home page.

//Carousel control; rotates through jumbotron images
function carouselControl() {
        autoplay: true,
        mobileFirst: true,
        autoplaySpeed: 5000,
        arrows: false,
        pauseOnFocus: false,
        pauseOnHover: false,
        swipeToSlide: true,

This bit of code displays the use of jQuery's ease of animations to add hide and show features for our map and hamburger menu.

// ******************************
// *******REACTIVE MENUS*********
// ******************************
function clickShowMap() {
    $ () {

function clickHideMap() {
    $ () {

// when hamburger menu icon is clicked, the hamburger icon hids, the exit icon shows and the menu-container shows slowly
function clickMenuShow() {
    $ () {
// when exit icon is clicked, the exit icon hids, the hamburger menu shows, and the menu-container hids slowly
function clickExitButton() {
    $ () {

Code snippit displays how listerners can be added to text inside a Google Maps marker. The code also detects whether or not the event has already been saved to myPlaces. The listener is not added if the event has been saved.

google.maps.event.addListener(infoWindow, 'domready', function() {
    if (document.querySelector('[data-role="save"]')) {
        document.querySelector('[data-role="save"]').addEventListener("click", function handler(e) {
            this.textContent = '\u2713Saved to myPlaces';
            this.setAttribute('data-role', 'saved');
            this.setAttribute('class', 'saved');
            addPlace(formatted_address, picInfo, latLon);
            e.currentTarget.removeEventListener('click', handler);

Demonstrates usage of localstorage and how a user's places on their myPlaces page are rendered.

// Takes myPlaces from local storage and prints information to screen
function displayMyPlaces(myPlaces) {
    var $myPlacesContainer = $('<div></div>', {
        'class': 'places-container',
        'data-role': 'places-container'
    for (var key in myPlaces) {
        var id = stringMaker(key);
        var $place = $('<div></div>', {
        'class': 'place',
        'data-role': 'place',
        'name': key,
        'id': id
        appendImages(myPlaces[key]["images"], $place);
        var $address = $('<span></span>', {
            'text': key
        var URI = encodeURI(key);
        var link = "" + URI;
        var $directions = $('<a></a>', {
            'target': "_blank", 
            'rel': "noopener noreferrer",
            'href': link,
            'text': 'Directions'

        var $delete = $('<a></a>', {
            'href': "#",
            'text': "Delete",
            'class': 'delete',
            'data-role': 'delete'

Live Demo


Landing Page with star filled night

Highlights the landing page of myPhotoAtlas

displaying search result of NYC and pictures

Photo result after Searching New York City

myPages screenshot

Displays how myPlaces is layed out

About Landing Page

Showcases our About section and the methods we used in creating myPhotoAtlas