Posted on Leave a comment

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!

    //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);

    <!--- Now just output the map --->

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.