Maps API for JavaScript Developer's Guide

H.map.DomIcon.Options

Type Definition Summary

This object encapsulates options used to initialize a DomIcon.

[ For full details, see the Type Definition Details ]

Property Summary

Table 1. Properties
Properties

onAttach

A callback to be invoked before a clone of the icon's element is appended and displayed on the map. This callback can be used to set up the clone.

onDetach

A callback to be invoked after a clone of the icon's element is removed from the map. This callback can be used to clean up the clone.

Type Definition Description

This object encapsulates options used to initialize a DomIcon.

Property Details

onAttach: {function(Element, H.map.DomIcon, H.map.DomMarker)=} [optional]

A callback to be invoked before a clone of the icon's element is appended and displayed on the map. This callback can be used to set up the clone.

onDetach: {function(Element, H.map.DomIcon, H.map.DomMarker)=} [optional]

A callback to be invoked after a clone of the icon's element is removed from the map. This callback can be used to clean up the clone.