Description
Adds a marker to the map.
Function syntax
ColdFusion.Map.addMarker(name, markerObj) |
See also
ColdFusion.Map.getLatitudeLongitude, ColdFusion.Map.getMapObject, ColdFusion.Map.setCenter,
ColdFusion.Map.setZoomlevel
History
ColdFusion 9: Added this function
Parameters
Parameter |
Description |
---|---|
name |
Specifies the value of the name attribute of the cfmap tag. |
markerObj |
Specifies the marker object for a given address. The following are the associated properties: latitude, longitude, address, title, markercolor, markericon, address, markerwindowcontent, and showmarkerwindow |
Returns
This function does not return a value.
Example
<h3>This is an example of the Map.addmarker function. Click the HTML button labeled "Add marker" to set the marker to the specified Address.</h3> |