Documentation

Change Label

Geometries on Micello map are given a label to identify that geometry. Labels can be one of below four different types.

  • 0 = None
  • 1 = Text
  • 2 = Icon
  • 3 = Image

Label type can be set in mapInlay function as below. Refer mapInlay for more details.

var inlay = {"id": a, "lt":1, "anm":"my_inlays", "lr":b};
mapDataObject.addInlay(inlay);

In this example, 'id' is the geometry id, 'lt' is the type of label 1, which is type text. "lr" property holds the new text to be used as label.

Check out "Macy's" store in below example.