Constructors
constructor
new Icon( url: string , width: number , height: number , anchorX: number , anchorY: number ) : Icon
Parameters
url: string
width: number
height: number
anchorX: number
anchorY: number
Properties
Static DEFAULTS
DEFAULTS
: Icon [] = [Icon.DEFAULT_RED,Icon.DEFAULT_BLACK,Icon.DEFAULT_BLUE,Icon.DEFAULT_GREEN,Icon.DEFAULT_GREY,Icon.DEFAULT_ORANGE,Icon.DEFAULT_PURPLE,Icon.DEFAULT_WHITE,Icon.DEFAULT_YELLOW,]
Static DEFAULT_BLACK
DEFAULT_
BLACK: Icon = new Icon('https://raw.githubusercontent.com/Concept211/Google-Maps-Markers/master/images/marker_black.png',22,40,22 / 2,40,)
Static DEFAULT_BLUE
DEFAULT_
BLUE: Icon = new Icon('https://raw.githubusercontent.com/Concept211/Google-Maps-Markers/master/images/marker_blue.png',22,40,22 / 2,40,)
Static DEFAULT_GREEN
DEFAULT_
GREEN: Icon = new Icon('https://raw.githubusercontent.com/Concept211/Google-Maps-Markers/master/images/marker_green.png',22,40,22 / 2,40,)
Static DEFAULT_GREY
DEFAULT_
GREY: Icon = new Icon('https://raw.githubusercontent.com/Concept211/Google-Maps-Markers/master/images/marker_grey.png',22,40,22 / 2,40,)
Static DEFAULT_ORANGE
DEFAULT_
ORANGE: Icon = new Icon('https://raw.githubusercontent.com/Concept211/Google-Maps-Markers/master/images/marker_orange.png',22,40,22 / 2,40,)
Static DEFAULT_PURPLE
DEFAULT_
PURPLE: Icon = new Icon('https://raw.githubusercontent.com/Concept211/Google-Maps-Markers/master/images/marker_purple.png',22,40,22 / 2,40,)
Static DEFAULT_RED
DEFAULT_
RED: Icon = new Icon('https://raw.githubusercontent.com/Concept211/Google-Maps-Markers/master/images/marker_red.png',22,40,22 / 2,40,)
Static DEFAULT_WHITE
DEFAULT_
WHITE: Icon = new Icon('https://raw.githubusercontent.com/Concept211/Google-Maps-Markers/master/images/marker_white.png',22,40,22 / 2,40,)
Static DEFAULT_YELLOW
DEFAULT_
YELLOW: Icon = new Icon('https://raw.githubusercontent.com/Concept211/Google-Maps-Markers/master/images/marker_yellow.png',22,40,22 / 2,40,)
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Icon defines a IMarker's icon. Mapster provides several default icons.
// Create your own default icon. const icon = new Icon("https://raw.githubusercontent.com/Concept211/Google-Maps-Markers/master/images/marker_red.png", 22, 40, 22 / 2, 40) // Or use a default icon. cons icon = Icon.DEFAULT_RED;