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 Static Maps

Kristopher Keen
Kristopher Keen
9,992 Points

Google Maps Integration challenge task 2 of 5

Not quite sure why this isn't working.

</head>
<body>
    <img src="http://maps.googleapis.com/maps/api/staticmap?key=AIzaSyAn8fk75K8kCdW6pQ4B7yoBHJNrUbleieY?sensor=false" alt="622 E Washington Street, Suite 240, Orlando, FL 32801">
</body>
</html>

****NEVERMIND FIGURED IT OUT

2 Answers

Brian Herbert
Brian Herbert
3,834 Points

Since this should be a static image, you can try visiting that URL in your browser to see if it returns any errors. When I hit http://maps.googleapis.com/maps/api/staticmap?key=AIzaSyAn8fk75K8kCdW6pQ4B7yoBHJNrUbleieY?sensor=false I see "The Google Maps API server rejected your request. Invalid request. Missing the 'size' parameter." which is your problem. You should be passing a width and a height.

Nikita Dvornikov
Nikita Dvornikov
10,344 Points

Just in case if someone still trying to pass this:

<img src="http://maps.googleapis.com/maps/api/staticmap?key=AIzaSyAn8fk75K8kCdW6pQ4B7yoBHJNrUbleieY&sensor=false" alt="622 E Washington Street, Suite 240, Orlando, FL 32801">```