Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

GoogleMapAPI "From here" directions

 
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
daiello@rinkatlas.com
Smarty Rookie


Joined: 19 Feb 2007
Posts: 7
Location: Newtown, PA

PostPosted: Mon Feb 19, 2007 7:00 pm    Post subject: GoogleMapAPI "From here" directions Reply with quote

In the course of developing RinkAtlas.com with GoogleMapAPI, I noticed that addresses typed into the "End address" were actually used as the "Start address" in submissions to http://maps.google.com/maps. The result is that "From here" always generates directions as if "To here" had been clicked.

Is this what other people using GoogleMapAPI are seeing?

It seems to me that a fix for this problem would involve:

1) invoking a JavaScript function when the "From here" link is clicked
2) having the function swap the contents of the "saddr" and "daddr" form elements and display and hide the correct labels and fields

Does this seem right?

If you have any recommendations about how to make these changes to the GoogleMapAPI code base, let me know.

Thanks,
_________________
Dave Aiello
RinkAtlas.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP