Fields

This section describes the fields that can be used in code to manipulate the Marker object.

type

Contains the type of the element.

Type: String

This field can be used to recognize whether an element is an area or a marker since it equals either the 'area' or 'marker'.

Show Example:
jQuery

In this example, tooltips are enabled only for markers. The type field of a map element is used to distinguish markers from areas. Hover over any marker to see its tooltip.