Toggling the center marker on a Google Map in ColdFusion

Readability

Toggling the center marker on a Google Map in ColdFusion

The fol­low­ing exam­ple shows how you can tog­gle the cen­ter marker on a Google Map in Cold­Fu­sion by using the <CFMAP> tag and set­ting the Boolean showCenterMarker attribute.







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

The following example shows how you can toggle the center marker on a Google Map in ColdFusion by using the <CFMAP> tag and setting the Boolean showCenterMarker attribute.

<cfparam name="URL.centerMarker" default="true" type="boolean" />
 
<cfajaximport params="#{googlemapkey='YourGoogleMapsAPIKeyHere'}#" />
 
<div style="background-color:#EEEEEE; padding:5px; width:390px;"><a href="?centerMarker=<cfoutput>#(NOT URL.centerMarker)#</cfoutput>">toggle showCenterMarker</a></div>
<cfmap name="map01"
        centeraddress="601 Townsend St, San Francisco, CA 94103"
        showCenterMarker="#URL.centerMarker#"
        zoomLevel="10" />

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

Leave a Reply

Your email address will not be published.