Driving Directions

5 views
Skip to first unread message

andrea...@yahoo.com

unread,
May 10, 2006, 1:05:30 PM5/10/06
to Google Maps EZ
In a previous topic, a method was posting for giving driving directions
in a google map, but I've never gotten it to work (I had the same
experience as the author of the thread, where the box is there but it
doesn't submit anything). I've found this bit of code for people
wanting to open up a maps.google.com page with directions to their
business and was wondering if there was a sort of happy-middle point to
get the two methods to work together:

<form action="http://maps.google.com/maps" method="get"
target="_blank">
<p><label for="mapsUsSaddr">Your Address (street, city state)</label>
<input type="text" class="text" name="saddr" id="mapsUsSaddr" value=""
size="20" />
<input type="submit" class="submit" value="Map It" />
<input type="hidden" name="daddr" value="46 harbor lane, englewood fl"
/>
<input type="hidden" name="hl" value="en" /></p>
</form>

Alternately, if someone has driving directions working on one of your
maps, could you post the solution?

WebSage

unread,
May 22, 2006, 6:10:39 PM5/22/06
to Google Maps EZ
I've got the driving directions to work on this page with GMapsEZ:
http://princetonsliquors.smcing.com/sitepages/pid38.php

Here is the Code I used:

<div id="map "class="GMapEZ GMapTypeControl GSmallMapControl"
style="border: 1px solid #541E1E; width: 350px; height: 300px;">
<a
href="http://maps.google.com/maps?f=q&hl=en&q=12790+Bass+Lake+Road,+Maple+Grove,+MN+55369&ll=45.065913,-93.445029&spn=0.021733,0.053902&om=1">
RED P
</a>
<div style="width: 150px;">
<b>Princeton's Liquors</b><br/>
12790 Bass Lake Road<br />
Maple Grove, MN 55369<br />
Phone: (763) 559-325<br/>
<form action="http://maps.google.com/maps" target="_blank"
method="get" style="font-size: 8pt; text-align: left">
<label for="Box">Get Directions From: </label><br />
<input type="text" name="saddr" id="Box" value="" style="font-size:
8pt;" size="20"/>
<input type="hidden" name="daddr" value="12790 Bass Lake Road Maple
Grove, MN 55369" />


<input type="hidden" name="hl" value="en"/>

<input type="submit" value="Go! " style="font-size: 8pt"/></form>
</div>
</div>

It works fine, but in IE the InfoWindow becomes quite large for some
odd reason. It actually expands so it is way longer then necessary. I
am working on a fix.

~WebSage

Message has been deleted

WebSage

unread,
May 22, 2006, 6:35:28 PM5/22/06
to Google Maps EZ
Figured it out. The GoogleMapEZ javascript calls a style 'max-width' in
the infowindow div. I removed that and it seemed to work fine. No long
infowindow in IE anymore.

What purpose did that serve?

Chouser

unread,
Jun 15, 2006, 10:57:24 PM6/15/06
to Google-...@googlegroups.com
WebSage wrote: [Mon May 22 2006, 06:35:28PM EDT]

The idea for that was to prevent infowindows from becoming wider than
the map in which they appear.

Obviously it didn't work. So I'll remove it from the next version of
GMapEZ.

Thanks,
--Chouser

Reply all
Reply to author
Forward
0 new messages