Maps API for JavaScript Developer's Guide

H.map.Spatial.Label

Type Definition Summary

This typedef defines data to used in a rendering hint for a label.

[ For full details, see the Type Definition Details ]

Property Summary

Table 1. Properties
Properties

x

The x coordinate of the first line's starting point

y

The y coordinate of the first line's base line

angle

The clockwise rotation angle in radians

font

The CSS font-family

size

The CSS font-size

color

The CSS color

text

The text content, new line characters (\u000A) are interpreted as line breaks

Type Definition Description

This typedef defines data to used in a rendering hint for a label.

Property Details

x: {number}

The x coordinate of the first line's starting point

y: {number}

The y coordinate of the first line's base line

angle: {number}

The clockwise rotation angle in radians

font: {string}

The CSS font-family

size: {number}

The CSS font-size

color: {string}

The CSS color

text: {string}

The text content, new line characters (\u000A) are interpreted as line breaks