Hi,

I am developing a new website, therefore I am working locally.
I needed to add a Google map in the "where we are" page, with just the
possibility to get directions, therefore I decided to use the Google
Map API code.

I am not a programmer, therefore I followed the instructions provided
by Google and added a code snipped I found on another website to
create a "Get Directions" window.

I use Drupal 6.14 and for this task, I prefer to not use any specific
module (I mean without GMap, Location etc. ) I copied the HTML in a
"page" content type, used FULL HTML and everything is working fine,
but... first the code:

<p><iframe width="753" scrolling="no" height="480" frameborder="0"
src="http://maps.google.com/maps?
f=d&amp;source=s_d&amp;saddr=&amp;daddr=Viale+San+Concordio,+1097N,
+55100+Lucca
+LU&amp;hl=en&amp;geocode=&amp;mra=ls&amp;sll=43.828993,10.496593&amp;sspn=0.011471,0.01929&amp;g=Viale
+San+Concordio,+1097N,+55100+Lucca
+LU&amp;ie=UTF8&amp;ll=43.828993,10.496593&amp;spn=0.005418,0.00912&amp;z=9&amp;output=embed"
marginwidth="0" marginheight="0"></iframe><br /><small><a
style="color: rgb(0, 0, 255); text-align: left;" href="http://
maps.google.com/maps?f=d&amp;source=embed&amp;saddr=&amp;daddr=Viale
+San+Concordio,+1097N,+55100+Lucca
+LU&amp;hl=en&amp;geocode=&amp;mra=ls&amp;sll=43.828993,10.496593&amp;sspn=0.011471,0.01929&amp;g=Viale
+San+Concordio,+1097N,+55100+Lucca
+LU&amp;ie=UTF8&amp;ll=43.828993,10.496593&amp;spn=0.005418,0.00912&amp;z=9">View
Larger Map</a></small></p>

<form action="http://maps.google.com/maps"; method="get"
target="_blank"><p><b>Get Directions to inBusiness Snc</b> <br />
<span class="descriptor">Start address:</span> <br /> <input
type="text" size="40" maxlength="40" name="saddr" value="Street, City,
State, Zip" onfocus="this.value='';" class="descriptor" id="saddr" /></
p><p><br /> <input type="SUBMIT" value="Get Directions"
class="descriptor" /> <input type="hidden" name="daddr"
value="43.828993, 10.496593" /></p></form>

On my desktop, with a 19" screen, the map is showing perfectly, at the
same time, I checked how it displayed in my Thinkpad (15") and
surprisingly, the map did not fit the screen, I mean the map size
seems to remain the same (753x480) therefore it displays much bigger
and outside the webpage layout, it doesn't resize according to the
screen which displays it.

As I said, I am not a programmer therefore is difficult for me to say
what and if the above snippet misses something, or possibly another
reason??

In addition, would you please tell me how to add the following:

1) Bottom right of the map, I'd like the "Overview" function so that
the user can move the map on a wider scale.
2) When the map is moved around, how can I get a "reset" button that
brings it back to the center?
3) How to add extra info to the marker? At the moment only the address
appears, but I'd like to add my company name.

Thank you for your help!

Alex

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to