Google Groups Home
Help | Sign in
Multiple Driving Directions Maps
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all
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
JohnR  
View profile
(2 users)  More options Aug 13, 4:16 pm
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
marcelo  
View profile
 More options Aug 13, 5:12 pm
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
--


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
warden [Andrew Leach - Maps API Guru]  
View profile
 More options Aug 13, 5:19 pm
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
geocodezip@gmail.com  
View profile
 More options Aug 13, 6:03 pm
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JohnR  
View profile
 More options Aug 21, 11:02 am
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! :)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
geocodezip@gmail.com  
View profile
 More options Aug 21, 11:12 am
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:

> Here is a link to the page:

> http://www.systek.com/NEW2_R23G2/contact.html

> Only the first one loads, but nothing else.

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JohnR  
View profile
 More options Aug 21, 1:22 pm
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?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
geocodezip@gmail.com  
View profile
 More options Aug 21, 1:48 pm
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google