Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Adding Directions

Received: by 10.227.157.73 with SMTP id a9mr430237wbx.12.1284067015999;
        Thu, 09 Sep 2010 14:16:55 -0700 (PDT)
X-BeenThere: google-maps-api@googlegroups.com
Received: by 10.227.82.133 with SMTP id b5ls2605747wbl.3.p; Thu, 09 Sep 2010
 14:15:59 -0700 (PDT)
Received: by 10.227.207.209 with SMTP id fz17mr422193wbb.27.1284066959405;
        Thu, 09 Sep 2010 14:15:59 -0700 (PDT)
Received: by 10.227.207.209 with SMTP id fz17mr422192wbb.27.1284066959334;
        Thu, 09 Sep 2010 14:15:59 -0700 (PDT)
Return-Path: <nlrale...@gmail.com>
Received: from mail-wy0-f174.google.com (mail-wy0-f174.google.com [74.125.82.174])
        by gmr-mx.google.com with ESMTP id ey20si599405wbb.6.2010.09.09.14.15.58;
        Thu, 09 Sep 2010 14:15:58 -0700 (PDT)
Received-SPF: pass (google.com: domain of nlrale...@gmail.com designates 74.125.82.174 as permitted sender) client-ip=74.125.82.174;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of nlrale...@gmail.com designates 74.125.82.174 as permitted sender) smtp.mail=nlrale...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by wyf22 with SMTP id 22so2303605wyf.33
        for <google-maps-api@googlegroups.com>; Thu, 09 Sep 2010 14:15:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:received:in-reply-to
         :references:date:message-id:subject:from:to:content-type;
        bh=6OQnU/+n/G27aleM94azIxDXk+BK1ySj4ZqfXjADtmg=;
        b=fcTjFLwG6uOzSJN+vep9khfsWThlrtF09M4SSgARIG8DpKHRUxeW9KTZSL/q+pgzdt
         5UYxBwjq8OXC0irA7C3+hXBQmxIgb/zYdGWJkm0Tw/e/HNxDiTNj0w9uMIF8byd14IeG
         K/vWzYS3xHpmfqdKCGQBIvmzMVoMrMvatrLv0=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        b=x7euaLsWFaK0hV+f/dYfHHAfWbzGkWb46Ub3k8/mDEVlCJL3Y3Mh34m/3JA62MKOsH
         W5sTP+xOUbUHsSC+BkQBKeLeYT5ELkEAxbck/CGsY9Rbe8BQQ5FAnzhkMOuczkRUW57A
         NAZ5ofbLSDCOkreZcj10p0B0cYAyV6QMi/ee0=
MIME-Version: 1.0
Received: by 10.227.138.68 with SMTP id z4mr243305wbt.192.1284066955128; Thu,
 09 Sep 2010 14:15:55 -0700 (PDT)
Received: by 10.227.148.17 with HTTP; Thu, 9 Sep 2010 14:15:55 -0700 (PDT)
In-Reply-To: <1d88350f-9740-4fe6-890c-635e62612...@q21g2000prm.googlegroups.com>
References: <54e6a1e8-5ef6-4ecf-9fdf-34ce95b98...@w15g2000pro.googlegroups.com>
	<1fc84f0e-92da-478c-b6c4-d4aed5daf...@k10g2000yqa.googlegroups.com>
	<0a7c7ded-bdc1-4d2e-ada3-ae9d42356...@x25g2000yqj.googlegroups.com>
	<e2c5cc90-429a-40e7-9f30-286fd84ed...@i13g2000yqd.googlegroups.com>
	<185563c8-b73d-4a86-a8e2-43649fb9e...@q21g2000prm.googlegroups.com>
	<465a21aa-4102-4960-a7cf-ac47d5b0e...@p22g2000pre.googlegroups.com>
	<01b2a35b-4fe1-4c38-899f-0813f2929...@s9g2000yqd.googlegroups.com>
	<1d88350f-9740-4fe6-890c-635e62612...@q21g2000prm.googlegroups.com>
Date: Thu, 9 Sep 2010 16:15:55 -0500
Message-ID: <AANLkTimCwKzA+sgNS-hdpwuC+SsuXgfcsnaXuvqRW...@mail.gmail.com>
Subject: Re: Adding Directions
From: Nathan Raley <nlrale...@gmail.com>
To: google-maps-api@googlegroups.com
Content-Type: multipart/alternative; boundary=0016367fb647ba7115048fda22d2

--0016367fb647ba7115048fda22d2
Content-Type: text/plain; charset=ISO-8859-1

His gmarkers[] is an array of markers.  He has basically pushed what markers
he wants to manipulate after creating them into an array and poisition i.

So gmarkers[i] is the marker he has stored in an array at whatever position
i is.

He has done the same for his infowindows.  Using the same reference, i in
this case, for the marker as the infowindow.

On the click event he is opening the infowindow[i], for marker[i].

That help you out any?

On Thu, Sep 9, 2010 at 3:47 PM, paulp575 <paulp...@dog-walker.us> wrote:

> On Sep 8, 11:43 am, "geocode...@gmail.com" <geocode...@gmail.com>
> wrote:
> >
> > Are you trying to do something like this?
> http://www.geocodezip.com/GenericMapBrowser.asp?filename=F18CrashSite...
> >
> > It handles tabbed infowindows, so might be a little more complicated than
> you are looking for, but most of it came from Mike's tutorials as well.
>
> For geocodezip - your suggestion is too complicated for what I'm
> trying to do. I just want to add the "Directions: To here - From here"
> line to the infoWindows, as in this example:
>
> http://econym.org.uk/gmap/example_map4.htm
>
> For Nathan - I've already got the infoWindows working.
>
> When I look at the above example's javascript, the code is so
> different than mine here:
>
>
> http://www.dog-walker.us/WOHVA/Catalog-map-with-ELabels/catalog-map-with-ELabels.htm
>
> In my javscript, the code for the picking up the click is:
>
>    function myclick(i)
>    {
>      GEvent.trigger(gmarkers[i], "click");
>    }
>
> In the above example, the javascript code for the same function is:
>
>    function myclick(i)
>    {
>      gmarkers[i].openInfoWindowHtml(htmls[i]);
>    }
>
> So far I have been able to cut and paste examples into my code - with
> some help from this forum - but this is so different I don't know how
> to modify my code to include the directions line.
>
> Thanks,
>
> Paul
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps API" group.
> To post to this group, send email to google-maps-api@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-api+unsubscribe@googlegroups.com<google-maps-api%2Bunsubscribe@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api?hl=en.
>
>

--0016367fb647ba7115048fda22d2
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

His gmarkers[] is an array of markers. =A0He has basically pushed what mark=
ers he wants to manipulate after creating them into an array and poisition =
i.<div><br></div><div>So gmarkers[i] is the marker he has stored in an arra=
y at whatever position i is. =A0</div>
<div><br></div><div>He has done the same for his infowindows. =A0Using the =
same reference, i in this case, for the marker as the infowindow.</div><div=
><br></div><div>On the click event he is opening the infowindow[i], for mar=
ker[i].</div>
<div><br></div><div>That help you out any?<br><br><div class=3D"gmail_quote=
">On Thu, Sep 9, 2010 at 3:47 PM, paulp575 <span dir=3D"ltr">&lt;<a href=3D=
"mailto:paulp...@dog-walker.us">paulp...@dog-walker.us</a>&gt;</span> wrote=
:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;">On Sep 8, 11:43=A0am, &quot;<a href=3D"mail=
to:geocode...@gmail.com">geocode...@gmail.com</a>&quot; &lt;<a href=3D"mail=
to:geocode...@gmail.com">geocode...@gmail.com</a>&gt;<br>

wrote:<br>
&gt;<br>
&gt; Are you trying to do something like this?<a href=3D"http://www.geocode=
zip.com/GenericMapBrowser.asp?filename=3DF18CrashSite." target=3D"_blank">h=
ttp://www.geocodezip.com/GenericMapBrowser.asp?filename=3DF18CrashSite.</a>=
..<br>

<div class=3D"im">&gt;<br>
&gt; It handles tabbed infowindows, so might be a little more complicated t=
han you are looking for, but most of it came from Mike&#39;s tutorials as w=
ell.<br>
<br>
</div>For geocodezip - your suggestion is too complicated for what I&#39;m<=
br>
trying to do. I just want to add the &quot;Directions: To here - From here&=
quot;<br>
line to the infoWindows, as in this example:<br>
<br>
<a href=3D"http://econym.org.uk/gmap/example_map4.htm" target=3D"_blank">ht=
tp://econym.org.uk/gmap/example_map4.htm</a><br>
<br>
For Nathan - I&#39;ve already got the infoWindows working.<br>
<br>
When I look at the above example&#39;s javascript, the code is so<br>
different than mine here:<br>
<br>
<a href=3D"http://www.dog-walker.us/WOHVA/Catalog-map-with-ELabels/catalog-=
map-with-ELabels.htm" target=3D"_blank">http://www.dog-walker.us/WOHVA/Cata=
log-map-with-ELabels/catalog-map-with-ELabels.htm</a><br>
<br>
In my javscript, the code for the picking up the click is:<br>
<br>
 =A0 =A0function myclick(i)<br>
 =A0 =A0{<br>
 =A0 =A0 =A0GEvent.trigger(gmarkers[i], &quot;click&quot;);<br>
 =A0 =A0}<br>
<br>
In the above example, the javascript code for the same function is:<br>
<br>
 =A0 =A0function myclick(i)<br>
 =A0 =A0{<br>
 =A0 =A0 =A0gmarkers[i].openInfoWindowHtml(htmls[i]);<br>
 =A0 =A0}<br>
<br>
So far I have been able to cut and paste examples into my code - with<br>
some help from this forum - but this is so different I don&#39;t know how<b=
r>
to modify my code to include the directions line.<br>
<div><div></div><div class=3D"h5"><br>
Thanks,<br>
<br>
Paul<br>
<br>
--<br>
You received this message because you are subscribed to the Google Groups &=
quot;Google Maps API&quot; group.<br>
To post to this group, send email to <a href=3D"mailto:google-maps-api@goog=
legroups.com">google-maps-api@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:google-maps=
-api%2Bunsubscribe@googlegroups.com">google-maps-api+unsubscribe@googlegrou=
ps.com</a>.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/google-maps-api?hl=3Den" target=3D"_blank">http://groups.google.com/gr=
oup/google-maps-api?hl=3Den</a>.<br>
<br>
</div></div></blockquote></div><br></div>

--0016367fb647ba7115048fda22d2--