Fields

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

text

Contains the descriptive text accompanying the map marker.

Type: String

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.


                                    

                                    

url

Contains the URL of an image map marker.

Type: String

value

Contains the value of a bubble map marker.

Type: Number

values

Contains the values of a pie map marker.

Type: Array