Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Build an Interactive Website Google Maps Integration Adding a Dynamic Map

Roy Hollister
PLUS
Roy Hollister
Courses Plus Student 5,119 Points

Google Maps Integration Challenge task 3 of 7

Challenge task 3 of 7 In the "mapOptions" object set the "center" key to a new google.maps namespaced "LatLng" object with the arguments of 28.42 and -81.58

For this task I have...

var mapOptions = {center: new google.maps.LatLng(28.42, -81.58)};

And I can't get it to work.

1 Answer

Brian Molkovich
Brian Molkovich
11,333 Points

Hi, try this var mapOptions = { center : new google.maps.LatLng(28.42, -81.58), zoom : 18 };