Multiple Driving Directions Maps
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
JohnR <jrie... @systek.com>
Date: Wed, 13 Aug 2008 13:16:26 -0700 (PDT)
Local: Wed, Aug 13 2008 4:16 pm
Subject: Multiple Driving Directions Maps
Hello,
I am new to this. I wanted to add 3 sets of driving directions (maps)
on the same page. I work for a company and we have 3 locations.
When I add in the three, only one appears..the others just decide not
to load.
How can I go about doing this? I am assuming this is because I have
everything from the same API key?
Thank you!
John
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
marcelo <marcelo... @hotmail.com>
Date: Wed, 13 Aug 2008 14:12:22 -0700 (PDT)
Local: Wed, Aug 13 2008 5:12 pm
Subject: Re: Multiple Driving Directions Maps
On Aug 13, 10:16 pm, JohnR <jrie
... @systek.com> wrote:
> How can I go about doing this? I am assuming this is because I have
> everything from the same API key?
You're assuming wrong. That's all I can say with the information you
provided.
--
Marcelo - http://maps.forum.nu
--
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"warden [Andrew Leach - Maps API Guru]" <andrew.leac... @googlemail.com>
Date: Wed, 13 Aug 2008 14:19:49 -0700 (PDT)
Local: Wed, Aug 13 2008 5:19 pm
Subject: Re: Multiple Driving Directions Maps
On Aug 13, 9:16 pm, JohnR <jrie
... @systek.com> wrote:
> When I add in the three, only one appears..the others just decide not
> to load.
> How can I go about doing this? I am assuming this is because I have
> everything from the same API key?
No, it's not that. It's probably because you're reusing the same
GDirections object for each route -- if one hasn't finished then it's
cancelled by the next one -- and probably also because you're not
using {preserveViewport:true} so successful routes are removed by
subsequent ones.
A link to your map would definitely help, which is why the posting
guidelines ask for one.
Andrew
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"geocode... @gmail.com" <geocode... @gmail.com>
Date: Wed, 13 Aug 2008 15:03:02 -0700 (PDT)
Local: Wed, Aug 13 2008 6:03 pm
Subject: Re: Multiple Driving Directions Maps
On Aug 13, 1:16 pm, JohnR <jrie
... @systek.com> wrote:
> Hello,
> I am new to this. I wanted to add 3 sets of driving directions (maps)
> on the same page. I work for a company and we have 3 locations.
> When I add in the three, only one appears..the others just decide not
> to load.
Here is an example page that does 4 routes:
http://www.geocodezip.com/multiple_routes.asp
If it doesn't help post a link to your map that shows the problem.
-- Larry
> How can I go about doing this? I am assuming this is because I have
> everything from the same API key?
> Thank you!
> John
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
JohnR <jrie... @systek.com>
Date: Thu, 21 Aug 2008 08:02:10 -0700 (PDT)
Local: Thurs, Aug 21 2008 11:02 am
Subject: Re: Multiple Driving Directions Maps
Here is a link to the page:
http://www.systek.com/NEW2_R23G2/contact.html
Only the first one loads, but nothing else.
Thanks for the help everyone!!
Also, please keep in mind I don't really know java that well.
Thanks again! :)
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"geocode... @gmail.com" <geocode... @gmail.com>
Date: Thu, 21 Aug 2008 08:12:15 -0700 (PDT)
Local: Thurs, Aug 21 2008 11:12 am
Subject: Re: Multiple Driving Directions Maps
On Aug 21, 8:02 am, JohnR <jrie
... @systek.com> wrote:
You have three <div id="mapsearch">, the id attribute must be unique
(by definition).
Make them mapsearch1, mapsearch2, mapsearch3...
(also change the document.getElementById("mapsearch") for each one)
-- Larry
> Thanks for the help everyone!!
> Also, please keep in mind I don't really know java that well.
> Thanks again! :)
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
JohnR <jrie... @systek.com>
Date: Thu, 21 Aug 2008 10:22:40 -0700 (PDT)
Local: Thurs, Aug 21 2008 1:22 pm
Subject: Re: Multiple Driving Directions Maps
Thanks!
Is there a way to have the address pop up automatically instead of
having to click on the little balloon?
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"geocode... @gmail.com" <geocode... @gmail.com>
Date: Thu, 21 Aug 2008 10:48:20 -0700 (PDT)
Local: Thurs, Aug 21 2008 1:48 pm
Subject: Re: Multiple Driving Directions Maps
On Aug 21, 10:22 am, JohnR <jrie
... @systek.com> wrote:
> Thanks!
> Is there a way to have the address pop up automatically instead of
> having to click on the little balloon?
If you create the map with the API there is. See Mike Williams'
tutorial:
Part 4 Getting directions
http://econym.googlepages.com/basic4.htm
You can open the infoWindow with some simple code.
Using those search wizards, there may be, but I don't use them so I
haven't looked into it. Someone else may be able to help.
-- Larry
You must
Sign in before you can post messages.
You do not have the permission required to post.