Hi,

I was trying to use the Google Maps API in a template called from a border type 
cflayoutarea with no luck. The maps simply doesn't show up:

<cfif isdefined("url.lat")>
        <cfset lat="#url.lat#">
    <cfset lng="#url.lng#">
</cfif>    
<head>
<script src=                                            
"http://maps.google.com/maps?file=api&amp;v=2&amp;key=xxxxx"; 
type="text/javascript">
            load=function(lat,lng){             
                        if (GBrowserIsCompatible()) {  
                                alert("browser ok");      
                                var map = new 
GMap2(document.getElementById("map_canvas"));
                                map.setCenter(new GLatLng(lat,lng), 
18,G_HYBRID_MAP);      
                                map.addOverlay(new GMarker(pt));
                        }    
                }    
</script>
</head>  
<cfoutput>
<body>
    Map:<br>
        <cfdiv id="map_canvas" bind="javaScript:load(#lat#,#lng#)" 
style="width: 500px; height: 300px"/>
</body>
</cfoutput>

Firebug returns that GBrowserIsCompatible() is not defined thus cannot be 
evaluated. Do I need to adjust settings on the Coldfusion server in order for 
it to work? Any suggestions is appreciated.

Using CF 8.01 and Dreamweaver 8 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312564
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to