Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

gmaps api: cant get any driving directions.?

its just a blank map without any pointers or routers on it

5:00 pm on Jan 28, 2008 (gmt 0)

New User

5+ Year Member

joined:Jan 18, 2008
posts: 7
votes: 0


im playing arround with the google maps api and this directions thingy as seen on [code.google.com...]

if i copy&paste the first example from [code.google.com...] to my own webserver and call it via [localhost...] in my browser then i only get a blank map, but no ponters, no route and no driving directions at the right side.
- firebug dosnt shows any errors, and i also dont get any popups like "unknown location" or so
- there are no includes with invalid paths
- my api key is valid (they dont check the key if the request comes from [localhost...] afaik)

any ideas?

12:50 am on Jan 29, 2008 (gmt 0)


WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
votes: 80

welcome to WebmasterWorld [webmasterworld.com], StarCoder!

not a code dump, but please post the relevant javascript, body tag and div tags.
(examplify your maps api key)

10:24 am on Jan 31, 2008 (gmt 0)

New User

5+ Year Member

joined:Jan 18, 2008
posts: 7
votes: 0

thanks, already solved it.
everything worked fine when i uploaded the code to my webserver. if you leave it on [localhost...] you only get the map, but no driving directions or any overlays :/