cfmap
Embeds a Google map within a ColdFusion web page
<cfmap>
cfmap();
This tag requires Adobe ColdFusion 9 and up. Not supported on Lucee, etc.
Discouraged: The use of tags generating UI is generally discouraged by the CFML community. See: https://static.raymondcamden.com/cfuitherightway/cfmap/index.html
Attribute Reference
width string
Map width, in pixels.
centerlongitude numeric
The longitude value for the location, in degrees
centeraddress string
The address of the location, which is set as the center of the map.
continuouszoom boolean
Whether to provide zoom control that enables smooth zooming for the map
Values:
truefalse
type string
Type of the Google map
Values:
mapsatellitehybridearthterrain
title string
Title of the panel
zoomcontrol string
Whether to enable zoom control
Values:
nonesmalllargesmall3Dlarge3D
tip string
A short description of the center location that appears as a tool tip.
Values:
truefalse
overview boolean
Whether to add an Overview panel to the map
Values:
truefalse
hideborder boolean
Whether to hide border for surrounding panel
Values:
truefalse
doubleclickzoom boolean
Whether to enable double-click zoom
Values:
truefalse
key string
The API key of the map.
collapsible boolean
Whether to provide a collapsible property for the surrounding panel
Values:
truefalse
zoomlevel numeric
Specifies the starting zoom value
height string
Height of the map, in pixels
centerlatitude numeric
The latitude value for the location, in degrees.
onload string
Custom JavaScript function that runs after the map loads..
typecontrol string
What type of typecontrol to provide. Basic includes "map, satellite, hybrid" and Advanced includes "map, satellite, hybrid, earth, terrain"
Values:
nonebasicadvanced
displayscale boolean
Whether to enable scale control
Values:
truefalse
name string
Name of the map.
scrollwheelzoom boolean
Default: true
true
Whether to enable mouse wheel zooming control
Values:
truefalse
markerBind string
Uses a bind expression to fetch markup to be displayed in the infowindow opened when the marker is clicked. This is mutually exclusive with the markerwindowtext attribute. This is inherited by all cfmapitem tags
showMarkerWindow boolean
Default: true
true
When true, the marker infowindow is shown. By default, this is false. This is inherited by all cfmapitem tags.
Values:
truefalse
markerWindowContent string
Static inner HTML markup to be displayed in the infowindow opened when the marker is clicked. This is mutually exclusive with the markerbind attribute
markerIcon string
Location of the icon to use for the marker.
markerColor string
marker color in hexadecimal value.
onError string
The JavaScript function to run when there is a Google map API error.The JavaScript function is passed with two parameters, Google map status code and error message.
showCenterMarker boolean
Default: true
true
Whether to display the marker icon that identifies the map center
Values:
truefalse
showScale boolean
Default: true
true
Whether to show scale control
Values:
truefalse
Examples Sample code using the cfmap tag
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/cfmap