Giter Site home page Giter Site logo

domdicarlo / noah-nomad-website Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7.9 MB

Included is some code I did for my friend's website. These files weren't hosted directly, but rather showcase the code that I added directly to that website's code. Details where appropriate.

HTML 100.00%

noah-nomad-website's Introduction

The Noah Adams Tracker

You can check out this code featured at whereisnoah.com !

What I did

My friend is a world traveler, and for fun would like to inform friends and family of his current whereabouts at the country-level resolution. So, I built him a small web applet that shows which country he is in.

How it works

Noah has to load in dates and their corresponding locations, after which the applet looks at the current date to determine where he should be. It updates based on an input array feauturing countries and dates. It draws a country using its geoJSON data for path data.

What I learned

This showcases my ability to manipulate javascript arrays (as there is a lot of that going on here), as well as develop scaling algorithms so that different countries of all shapes and sizes can fit nicely on a page whether on mobile or web.

What could be improved

Instead of using scaling algorithms, I think it would have been much easier and more standard to use css. I was quite new to web development when I did this project, so my implementation method reflects my inexperience. It was still cool to program the project in this way.

Miscellaneous

I have done some hard editing of the geoJSON file at times, so if you want to do something like this for yourself, make sure to use my geoJSON.

I have commented a few problem countries in the data, being Russia and smaller countries. Certain countries have land spread far out in the geoJSON file, making their plotting and scaling a problem. To fix this for those countries, you must hard edit the geoJSON to either cut out small islands recognized as Russia (or any country) or place them nearer the central land mass. For the extra small countries, you will need to include a higher resolution set of coordinates within the geoJSON. I have not done this at this time but it is definitely possible.

noah-nomad-website's People

Contributors

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