From the course: JavaScript for Web Designers

Unlock the full course today

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

Challenge: Modify the map

Challenge: Modify the map - JavaScript Tutorial

From the course: JavaScript for Web Designers

Start my 1-month free trial

Challenge: Modify the map

(upbeat music) - H+ Sport is growing. They have a new location, right here. For this challenge we're going to update the map to include that new location. So we're calling this challenge new location. The address for the new location is 100 Vin Scully Avenue, Los Angeles, California 90012. This is really Dodger Stadium. You can use the location's geocoder service from the Bing Maps API to get the coordinates. We're going to need to add a pushpin for this location and maybe an info window. I'm going to leave that to you to decide if you need to add a new one or not. The click event handler we can definitely reuse. I'll give you that hint. We also need to recenter and zoom the map to make sure that both locations are easily visible. You can use your JavaScript console to get the values you need for where the new center point will be and what that new zoom level should be. This challenge should take about five or 10…

Contents