# <cfmap>

This are provided for backwards compatibility, and should be considered [deprecated](../deprecated.md)

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>](script.md) 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>
```

# Attributes

| Attribute | Type | Required | Description | Default |
|-----------|------|----------|-------------|---------|
| name | string | No |  |  |
| onLoad | string | No |  |  |
| onNotFound | string | No |  |  |
| onError | string | No |  |  |
| centerAddress | string | No |  |  |
| centerLatitude | string | No |  |  |
| centerLongitude | string | No |  |  |
| height | numeric | No |  |  |
| width | numeric | No |  |  |
| zoomLevel | numeric | No |  |  |
| overview | boolean | No |  |  |
| showScale | boolean | No |  |  |
| type | string | No |  |  |
| showCenterMarker | boolean | No |  |  |
| markerWindowContent | string | No |  |  |
| tip | string | No |  |  |
| typeControl | string | No |  |  |
| zoomControl | string | No |  |  |
| continuousZoom | boolean | No |  |  |
| doubleClickZoom | boolean | No |  |  |
| markerColor | string | No |  |  |
| markerIcon | string | No |  |  |

# Examples

```cfml
<cfmap
    centerlatitude    = "47.3769"
    centerlongitude    = "8.5417"
    zoomlevel        = "5"
    width            = "200"
    height            = "200"
/>

```

```cfml
<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>

```








# Categories

[Ajax features](../../categories/ajax.md)

# See Also

[<cfmapitem>](mapitem.md)