A high-level canvas to draw text labels in the border of a map. To enable painting, implement the paintBorderLabel method on your FeaturePainter.

Since

2014.0

Hierarchy

  • BorderLabelCanvas

Methods

Methods

  • Draw a HTML label at the specified position. The html should be a text-string and should not contain dynamic content.

    Parameters

    • html: string

      The HTML to place on the map. It may contain HTML markup and CSS styling properties.

    • shape: Shape

      The shape for which the label should be drawn.

    • labelStyle: PointLabelStyle

      An object containing labeling properties. Note that the padding property is not supported. Use CSS padding and margin properties to simulate padding.

    Returns void