Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IMarker

IMarker interface defines all the properties a marker should have.

const marker: IMarker = {
     id: "87998"
     icon: Icon.DEFAULT_RED,
     lat: 20.6492650861356
     lng: -103.43710715239851
}

Hierarchy

  • IMarker

Index

Properties

Properties

icon

icon: Icon

Marker's icon. You can either use a custom icon or use on of the defaults such as Icon.DEFAULT_RED.

id

id: string

Unique id for each marker. This property is used to identify a marker and apply operations to itself.

lat

lat: number

Marker's latitude in EPSG:4326 coordinate system.

lng

lng: number

Marker's longitude in EPSG:4326 coordinate system.

Optional onClick

onClick: Function

OnClick event. Only optional.

Generated using TypeDoc