Add a map visual
The format of the <method>
element
when adding a visual to a map is:
<method methodName="map.addMapVisual">
Use
this method to add one or more objects to an existing map. The <method>
element
contains one or more <map>
elements that identify
maps to add new objects to. Each <map>
element
contains any number of <text>
, <button>
, <monitor>
, <icon>
,
and <line>
elements each of which define a new
object to add to the map. For more information, see <map>.
This example
adds a text label and a monitor box to the map named map2
.
<methodCall>
<method methodName="map.addMapVisual">
<map name="map2">
<text name="map2" label="map2" x="147" y="30" font="Helvetica" size="22"
justify="center" style="bi" color="black" />
<monitor name="lastday" label="Last Day" x="131" y="92" action="table"
url="" target="_blank" filter="ExampleLastDay" filtertype="system"
w="100" h="126" type="histogram" show_label="true" show_total="true"
show_highest="false" show_lowest="false" show_metric="true"
foreground_color="red" background_color="lightGray" font="Helvetica"
size="10" style="p" show_highest_severity_as_border="false" />
</map>
</method>
</methodCall>