<cfmap>

edit

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.(Requires AJAX extension)

This tag may have a body.

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

<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
edit
onLoad
string, optional
edit
onNotFound
string, optional
edit
onError
string, optional
edit
centerAddress
string, optional
edit
centerLatitude
string, optional
edit
centerLongitude
string, optional
edit
height
numeric, optional
edit
width
numeric, optional
edit
zoomLevel
numeric, optional
edit
overview
boolean, optional
edit
showScale
boolean, optional
edit
type
string, optional
edit
showCenterMarker
boolean, optional
edit
markerWindowContent
string, optional
edit
tip
string, optional
edit
typeControl
string, optional
edit
zoomControl
string, optional
edit
continuousZoom
boolean, optional
edit
doubleClickZoom
boolean, optional
edit
markerColor
string, optional
edit
markerIcon
string, optional
edit

Examples

edit
<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