cfmap

Embeds a Google map within a ColdFusion web page

 <cfmap>

 cfmap();

This tag requires Adobe ColdFusion. Not supported on Lucee, OpenBD, etc.

Attribute Reference for the cfmap tag

width

Required: No
Map width, in pixels.

centerlongitude

Required: No
The longitude value for the location, in degrees

centeraddress

Required: No
The address of the location, which is set as the center of the map.

continuouszoom

Required: No
Whether to provide zoom control that enables smooth zooming for the map

type

Required: No
Type of the Google map Values:
  • map
  • satellite
  • hybrid
  • earth
  • terrain

title

Required: No
Title of the panel

zoomcontrol

Required: No
Whether to enable zoom control Values:
  • none
  • small
  • large
  • small3D
  • large3D

tip

Required: No
A short description of the center location that appears as a tool tip.

overview

Required: No
Whether to add an Overview panel to the map

hideborder

Required: No
Whether to hide border for surrounding panel

doubleclickzoom

Required: No
Whether to enable double-click zoom

key

Required: No
The API key of the map.

collapsible

Required: No
Whether to provide a collapsible property for the surrounding panel

zoomlevel

Required: No
Specifies the starting zoom value

height

Required: No
Height of the map, in pixels

centerlatitude

Required: No
The latitude value for the location, in degrees.

onload

Required: No
Custom JavaScript function that runs after the map loads..

typecontrol

Required: No
What type of typecontrol to provide. Basic inclueds "map, satellite, hybrid" and Advanced includes "map, satellite, hybrid, earth, terrain" Values:
  • none
  • basic
  • advanced

displayscale

Required: No
Whether to enable scale control

name

Required: No
Name of the map.

scrollwheelzoom

Required: No
Default: YES
Whether to enable mouse wheel zooming control

markerBind

Required: No
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

Required: No
Default: YES
When true, the marker infowindow is shown. By default, this is false. This is inherited by all cfmapitem tags.

markerWindowContent

Required: No
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

Required: No
Location of the icon to use for the marker.

markerColor

Required: No
marker color in hexadecimal value.

onError

Required: No
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

Required: No
Default: YES
Whether to display the marker icon that identifies the map center

showScale

Required: No
Default: YES
Whether to show scale control


Fork me on GitHub