Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google maps static api - Marker doesn't show up

I got a static map link using this wizard http://gmaps-samples.googlecode.com/svn/trunk/simplewizard/makestaticmap.html and the marker is on the image, but when i put this link into my website, the marker doesn't show up.

Here is the website where i'm trying to view the map. I see the map, but no marker. http://church.allthingswebdesign.com

I just have the link in an image tag like this

<img id="map" src="http://maps.google.com/staticmap?center=43.963415,-92.460594&zoom=14&markers=Comfort+Suites,+4141+Maine+Ave+SE,+Rochester,+MN++55904&size=300x400&sensor=TRUE_OR_FALSE&key=ABQIAAAA6-Rq-t8XwsqXeXws3DleLBSI_7XewNJfovQwsmZjGMbTG7rp6BQaj3bwm-gy7nGQPyWKPTd3zPtcVA" alt="Map" />

Why doesn't the marker show up on my website?

like image 704
Catfish Avatar asked Aug 24 '10 01:08

Catfish


1 Answers

Ok, one thing to change - where it says TRUE_OR_FALSE in the url try changing it to false (all lower case).

If I browse directly to the url of the image provided, I don't see a marker so I suspect it's a problem with the wizard rather than your site.

Try this:

<img src="https://maps.google.com/maps/api/staticmap?center=43.962072,-92.456297&zoom=13&markers=43.962072,-92.456297&size=300x400&sensor=false&key=ABQIAAAA6-Rq-t8XwsqXeXws3DleLBSI_7XewNJfovQwsmZjGMbTG7rp6BQaj3bwm-gy7nGQPyWKPTd3zPtcVA">

For details on the sensor parameter, see here

like image 67
Basic Avatar answered Oct 20 '22 06:10

Basic