cfmap

Embeds a Google map within a ColdFusion web page

 <cfmap>

 cfmap();

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

cfmap Attribute Reference

width

Map width, in pixels.

centerlongitude

The longitude value for the location, in degrees

centeraddress

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

continuouszoom

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

type

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

title

Title of the panel

zoomcontrol

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

tip

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

overview

Whether to add an Overview panel to the map

hideborder

Whether to hide border for surrounding panel

doubleclickzoom

Whether to enable double-click zoom

key

The API key of the map.

collapsible

Whether to provide a collapsible property for the surrounding panel

zoomlevel

Specifies the starting zoom value

height

Height of the map, in pixels

centerlatitude

The latitude value for the location, in degrees.

onload

Custom JavaScript function that runs after the map loads..

typecontrol

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

displayscale

Whether to enable scale control

name

Name of the map.

scrollwheelzoom
Default: YES

Whether to enable mouse wheel zooming control

markerBind

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
Default: YES

When true, the marker infowindow is shown. By default, this is false. This is inherited by all cfmapitem tags.

markerWindowContent

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

Location of the icon to use for the marker.

markerColor

marker color in hexadecimal value.

onError

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
Default: YES

Whether to display the marker icon that identifies the map center

showScale
Default: YES

Whether to show scale control

Fork me on GitHub