Description
Executes a custom JavaScript function to enable event handling in a map.
Function syntax
ColdFusion.Map.addEvent(name, event, listener, scopeObject) |
See also
ColdFusion.Map.getLatitudeLongitude, ColdFusion.Map.getMapObject, ColdFusion.Map.setCenter,
ColdFusion.Map.setZoomlevel
History
ColdFusion 9: Added this function
Parameters
Parameter |
Description |
---|---|
name |
Name of the map. |
event |
The event to handle, for example click, dblclick, singleRightClick and mapTypeChange. For more events, refer to the Events section in the Google Maps API Reference documentation. |
listener |
The function that is called when the event is fired. |
scopeObject |
A JavaScript object that is set in the this scope. |
Usage
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> |