Constructors
constructor
- new Labeler(enabled: boolean, minZoom: number, maxZoom: undefined | number, color: undefined | Color, textSize: number, buffer: number): Labeler
-
Parameters
-
enabled: boolean
-
minZoom: number
-
maxZoom: undefined | number
-
color: undefined | Color
-
textSize: number
-
buffer: number
Methods
getBuffer
- getBuffer(): number
-
Returns number
getColor
- getColor(): undefined | Color
-
Returns undefined | Color
getMaxZoom
- getMaxZoom(): undefined | number
-
Returns undefined | number
getMinZoom
- getMinZoom(): number
-
Returns number
getTextSize
- getTextSize(): number
-
Returns number
hasMaxZoom
- hasMaxZoom(): boolean
-
Returns boolean
isEnabled
- isEnabled(): boolean
-
Returns boolean
isWithin
- isWithin(zoom: number): boolean
-
Returns boolean
setBuffer
- setBuffer(buffer: number): void
-
Returns void
setColor
- setColor(color?: Color): void
-
Returns void
setEnabled
- setEnabled(enabled: boolean): void
-
Returns void
setMaxZoom
- setMaxZoom(maxZoom?: number): void
-
Returns void
setMinZoom
- setMinZoom(minZoom: number): void
-
Returns void
setTextSize
- setTextSize(textSize: number): void
-
Returns void
Grid Labeler