<cfmap>

This are provided for backwards compatibility, and should be considered deprecated

These tags are quite limited and difficult to extend, it's recommended to use a modern javascript mapping API instead.

This tag may have a body.

This tag has no <cfscript> support or it uses a different syntax.

Requires Extension: Ajax Extension

<cfmap name=string onLoad=string onNotFound=string onError=string centerAddress=string centerLatitude=string centerLongitude=string height=numeric width=numeric zoomLevel=numeric overview=boolean showScale=boolean type=string showCenterMarker=boolean markerWindowContent=string tip=string typeControl=string zoomControl=string continuousZoom=boolean doubleClickZoom=boolean markerColor=string markerIcon=string ><!--- body --->[</cfmap>]
Attribute Description
name
string, optional
onLoad
string, optional
onNotFound
string, optional
onError
string, optional
centerAddress
string, optional
centerLatitude
string, optional
centerLongitude
string, optional
height
numeric, optional
width
numeric, optional
zoomLevel
numeric, optional
overview
boolean, optional
showScale
boolean, optional
type
string, optional
showCenterMarker
boolean, optional
markerWindowContent
string, optional
tip
string, optional
typeControl
string, optional
zoomControl
string, optional
continuousZoom
boolean, optional
doubleClickZoom
boolean, optional
markerColor
string, optional
markerIcon
string, optional

Examples

<cfmap
    centerlatitude    = "47.3769"
    centerlongitude    = "8.5417"
    zoomlevel        = "5"
    width            = "200"
    height            = "200"
/>
<cfmap  centerlatitude    = "47.3769"
		centerlongitude    = "8.5417"
		type            = "satellite"
		zoomlevel        = "4"
		width            = "300"
		height            = "300">
	<cfmapitem name="Berlin" latitude="52.5200" longitude="13.405" tip="Berlin"/>
	<cfmapitem name="Zurich" latitude="52.5200" longitude="13.405" tip="Zurich"/>
</cfmap>

See also