Scott Mebberson

Icon

Web Technologist

Google Maps ColdFusion Tag; now with official Google Maps API Driving Directions support

As the rather long title says, I’ve just updated my Google Maps ColdFusion Tag with support for the new official Google Maps API Driving Directions. In a previous post, I launched Driving Directions for my Google Maps ColdFusion Tag, however it didn’t use anything official from Google to achieve this. Adding support for the official API from Google will allow me to make it more feature rich and much more robust and stable.

There are a couple of other nice enhancements, including some JavaScript methods so you can update the directions on the maps, without having to reload the page. I’ve also added some more driving directions examples.

You can download the source (or a zipped 0.4 version) and check it out via subversion over at RIAForge.

Filed under: coldfusion, google maps, web 2.0

6 Responses

  1. Robb says:

    I have noticed that this does not work in ie 7. Do you have a fix for that? It works in Firefox really well.
    Thanks Robb

  2. J Harvey says:

    Nice Script!

    Will you be adding support for the custom icons any time soon (as seen here: http://www.google.com/apis/maps/documentation/#Creating_Icons)?

  3. M Brown says:

    Have you added application files for IE7. Does not seem to work in that browser space.

    Thanks

  4. Chris Coleman says:

    I have found and corrected the problem with the IE issue. In the GoogleMap.cfm file, on lines 350-353 you have this:

    window.load = GM_Load();

    window.load = GM_viewProperty(#variables.sMainPoint.Lat#,#variables.sMainPoint.Lon#,’#variables.sMainPoint.PointName#’);

    Change both instance of window.load to window.onload and it works in both Firefox and IE.

    Enjoy.

  5. Alec says:

    I tried to download the zip file by I got an error:
    File not found: /download.cfm

  6. Michael says:

    Scott,

    I know this is a bit old but can I get the files. It will jump start a project I am working on.

    HUGE THANKS!

Leave a Reply