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

General Discussion

Google Maps Integration - Code Challenge: Adding Static Maps Help

Can anyone help me on the following task is to Set the query parameter of "key" to "AIzaSyAn8fk75K8kCdW6pQ4B7yoBHJNrUbleieY"

Where am I going wrong?

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

6 Answers

Probably have to stick in on the end of the URL, I don't believe the IMG element accepts a 'key' attribute.

example.com/api/map?property=value

With this code above, Its saying the following

"Bummer! The query parameter 'key' is undefined"

Anyone have any ideas?

Here is the documentation, this link will take you directly to the part you need: https://developers.google.com/maps/documentation/staticmaps/#api_key

I'm still having trouble with this. Can anyone help?

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

Try that.

Thank you for all your help