#Marker

The diag.addMarker method can be used to add extra information to a given location within the floor plan.

It requires the following parameters:

let point = new m2Diag.Point(-2387.84, -1360.16);
let marker = diag.addMarker(point, '/content/marker.png', 60, 60);
diag.refresh();

This assumes that

  • pos is the position on the floor plan where the marker points
  • imgUrl is a custom marker image URL which will be displayed in the diagram
  • width and height specifies the size of the image

Returns Marker instance

marker demo

results matching ""

    No results matching ""