Setting a title on a Google Map in ColdFusion 9

Readability

Setting a title on a Google Map in ColdFusion 9

In a pre­vi­ous exam­ple, “Embed­ding a Google Map using the CFMAP tag in Cold­Fu­sion 9, we saw how you could embed a Google map in to a Cold­Fu­sion 9 project using the <CFMAP> tag.

The fol­low­ing exam­ple shows how you can set a title on a Google Map in Cold­Fu­sion by using the <CFMAP> tag and set­ting the Boolean hideBorder attribute to false and the title attribute.




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

In a previous example, “Embedding a Google Map using the CFMAP tag in ColdFusion 9”, we saw how you could embed a Google map in to a ColdFusion 9 project using the <CFMAP> tag.

The following example shows how you can set a title on a Google Map in ColdFusion by using the <CFMAP> tag and setting the Boolean hideBorder attribute to false and the title attribute.

<cfajaximport params="#{googlemapkey='YourGoogleMapsAPIKeyHere'}#" />
 
<cfmap name="gmap01"
        centerAddress="601 Townsend St, San Francisco, CA, 94103"
        hideBorder="false"
        title="Adobe San Francisco"
        zoomLevel="10"/>

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

Leave a Reply

Your email address will not be published.