GithubHelp home page GithubHelp logo

raylwalters / map-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from llamasoft-dotcom-demo/map-demo

0.0 2.0 0.0 10 KB

A sample project for prospects

CSS 13.35% HTML 52.34% JavaScript 34.32%

map-demo's Introduction

map-demo

A sample project for prospects

To fill in the table data when a user selects an airport code, I targeted each id and assigned it text with the current airport information using dot notation. Ex. Map.js line 31. I had to change the id on line 99 because it was used twice, this way the table would fill in properly

To allow users to remove markers I allowed a user to click on the last marker added it then cleared the table data and popped the last marker that was pushed to the array when it was created.

I sorted the airport code names alphabetically in the loadSiteList function by using ._sortBy and passing the airport code in.

To make the site responsive I used bootstrap and set the width of the map to 100% so it would resize with the screen.

When a user selects an airport code I centered the map by assigning a new google map and centering it based off of current selected latitude and longitude.

I also used a media query and a text overflow in CSS to control the table data.

map-demo's People

Contributors

raylwalters avatar mikesurel avatar

Watchers

James Cloos avatar  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.