Friday, November 11, 2005

Sweet! ColdFusion rocks and here's why!

So you want to include a Google Map on your site? With ColdFusion you can do it in two lines of code using CFGoogleMaps!

<cfscript>
    //Create the object
    cfgm = CreateObject('component','cfgooglemaps');
    //Pass the init function your google key and the
    //lat and lon on which the map should be centered
    cfgm.init('INSERT GOOGLE MAP KEY',38.898748,-77.037684);
</cfscript>

<cfoutput>
    <!--- Now just output the map --->
    #cfgm.getMap()#
</cfoutput>