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 trialHelen Anderson
6,519 PointsIssue setting map markers using JQuery
Could someone please tell me what I am doing wrong. Thanks in advance
Instructions:
Marker in google maps - code challenge: Set the query parameter of "markers" to equal the URL encoded address of "622 E Washington Street, Suite 240, Orlando, FL 32801"
Code:
<img src="http://maps.googleapis.com/maps/api/staticmap?key=AIzaSyAn8fk75K8kCdW6pQ4B7yoBHJNrUbleieY&size=400x300&sensor=false&markers=622+E+Washington+Street+Suite+240+Orlando+FL+32801" alt="622 E Washington Street, Suite 240, Orlando, FL 32801">
</body>
</html>
The error message is: "The 'markers' value is incorrect".
3 Answers
Helen Anderson
6,519 PointsOk got it working appears the problem was the commas, i.e. 622+E+Washington+Street,+Suite+240,+Orlando+FL+32801
by the way ... I could not copy and paste my successful code because the pop up success message does not allow returning to the code challenge answer. Is this by design? Sometimes, I'm quite pleased with what I've managed and would like to save code snippets.
Darren White
3,848 Pointssorry to jump on someone else's thread but I'l having the same issue. Everything looks fine:
<img src="http://maps.googleapis.com/maps/api/staticmap?key=AIzaSyAn8fk75K8kCdW6pQ4B7yoBHJNrUbleieY&sensor=false&size=400x300&markers=622+E+Washington+Street,+Suite+240,+Orlando+FL+32801" alt="622 E Washington Street, Suite 240, Orlando, FL 32801">
But I can't get passed the 5th step as the "The 'markers' value is incorrect"
TIA, Darren
Darren White
3,848 PointsFixed it, it was a comma again or lack there of after Orlando