From the course: JavaScript for Web Designers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Add a popup to the marker - JavaScript Tutorial
From the course: JavaScript for Web Designers
Add a popup to the marker
- [Instructor] If there's one thing that I've learned in my years as a web designer, developer, and human being, I suppose, it's that people aren't always good at reading the details. Now that we've added this map to the page, I could expect people to miss this address that appears right above it. Let's add the address to the map, so when someone clicks on this little pushpin, the address appears. So we can stand a better chance of our customers actually seeing it. We're going to need to look at the documentation again to see how to do that. So starting back here, on the documentation, I'm going to look under the terminology, or concepts area again, and then right under pushpins is infoboxes. That sounds pretty promising. Let's take a look at that. Sometimes referred to as an info window or pop up. Yep, that's what we want. This is often used to display information linked to a location after clicking on a pushpin.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.