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

JavaScript

changing location google map

hello everybody,

I'm trying to modify the line where location is added on the google map project,(marker=), cause I'm trying to add another location, a different one, (other country, or other place just to customize it) but still the map shows me the location marks of the smells like baking site project, what am i doing wrong? do i need to modify another line besides this one below?

<img src="http://maps.googleapis.com/maps/api/staticmap?key=AIzaSyB3ilbgXs9PWRYyRGVkTD7T-P-MegH59yE&size=400x400&sensor=false&markers=MODIFY DIRECTION"

thank you everbody

1 Answer

Shouldn't need to, here is an example showing a marker at Mountain View (Google's home base) and Cupertino (Apple's home base). You separate each location with the vertical bar ( | ), encoded as %7C

http://maps.googleapis.com/maps/api/staticmap?key=AIzaSyB3ilbgXs9PWRYyRGVkTD7T-P-MegH59yE&size=400x400&sensor=false&markers=Mountain%20View,%20CA%7CCupertino,%20CA

Feel free to consult the Google static maps API documentation: https://developers.google.com/maps/documentation/staticmaps/

oh but i meant the api map java script :/, but i already figured it out thank you