Toggling the overview panel on a CFMAP tag in ColdFusion

Readability

Toggling the overview panel on a CFMAP tag in ColdFusion

The fol­low­ing exam­ple shows how you can tog­gle the overview panel on a CFMAP tag in Cold­Fu­sion by set­ting the Boolean overview attribute.










    
        
        
        
    
    
    



And the out­put of the <CFMAP> tag is as fol­lows:

The following example shows how you can toggle the overview panel on a CFMAP tag in ColdFusion by setting the Boolean overview attribute.

<html>
 
<cfajaximport params="#{googlemapkey='YourGoogleMapsAPIKeyHere'}#" />
<cfparam name="URL.overview" default="false" type="boolean" />
 
<head>
</head>
<body style="padding:20px;">
 
    <cfform method="GET" action="#CGI.SCRIPT_NAME#">
        <cfinput name="overview" type="checkbox" value="1" checked="#URL.overview#" onchange="this.form.submit();" />
        <label for="overview">overview</label>
        <cfinput name="submitBtn" type="submit" value="Submit" />
    </cfform>
 
    <cfmap name="map01"
            centerAddress="San Francisco, CA"
            overview="#URL.overview#" />
 
</body>
</html>

And the output of the <CFMAP> tag is as follows:

One thought on “Toggling the overview panel on a CFMAP tag in ColdFusion”

  1. I’m writing applications in ColdFusion and Flex 4.
    I would like to contact you by e-mail. I have some problems with the application. Could you help me? Thank You!

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>