From the course: Code Clinic: JavaScript

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution overview

Solution overview - JavaScript Tutorial

From the course: Code Clinic: JavaScript

Start my 1-month free trial

Solution overview

- [Instructor] One of the interesting things about JavaScript is that there's usually an API or a framework for just about anything you need to build. So sometimes the best way to do things is to handle things in your own way, but sometimes some problems are just too complicated to do yourself. So, in this case, we don't really have the money to launch satellites, to sort of handle any sort of mapping for ourselves, but we can use the Google Maps API to show us a location pretty easily. Now the main part of this problem was figuring out your location, and that's actually quite easy to do in JavaScript. There is a geolocation API available, and you can just pull it to find out the location. So that part of the problem, super super easy. The mapping part, you're gonna have to make a decision as to what mapping engine you want to use, Google Maps is probably the easiest and most common one, and it's pretty easy to use either something called the Google Maps static API and you can also…

Contents