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 trialRichard Mockford
3,476 PointsGoogle 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
Chad Shores
Courses Plus Student 8,868 PointsProbably 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
Richard Mockford
3,476 PointsWith this code above, Its saying the following
"Bummer! The query parameter 'key' is undefined"
Anyone have any ideas?
Chad Shores
Courses Plus Student 8,868 PointsHere is the documentation, this link will take you directly to the part you need: https://developers.google.com/maps/documentation/staticmaps/#api_key
Richard Mockford
3,476 PointsI'm still having trouble with this. Can anyone help?
Chad Shores
Courses Plus Student 8,868 Points<img src="http://maps.googleapis.com/maps/api/staticmap?key=AIzaSyAn8fk75K8kCdW6pQ4B7yoBHJNrUbleieY" alt="622 E Washington Street, Suite 240, Orlando, FL 32801">
Try that.
Richard Mockford
3,476 PointsThank you for all your help