Documentation

Image as 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": geometry_id, "lt":3, "anm":"my_inlays", "lr":"/path/to/image.png"};
mapDataObject.addInlay(inlay);

In this example, 'id' is the geometry id, 'lt' is the type of label 3, which is type image. "lr" property holds the path to image to be used as label.

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