Multiple Independent Text Boxes Located with Graphical Objects
- Last UpdatedMar 24, 2025
- 2 minute read
In the following example, two of the extents of the three text objects are outside the extents of the symbol. In this case all of the independent text objects ‘text123’ and ‘P-101’ and ‘TestABC’ can be grouped with the symbol using an <IncludeArea> configuration, and any tags derived from that text will result in a hotspot that highlights all graphical elements of the group when the tag is selected.

If the area to be searched as defined in Patterns 2D was top=2 and bottom=2, then the concatenated text assigned to the graphics would be ‘Text123-P-101-TextABC’, which will be the initial Object ID of the graphical object. If pattern mapping matches this text or any sub-string, for example, with this base mapping configuration:
<ObjectID>
<Transforms>
<Keep pattern="[A-Z]-\d{3} " />
</Transforms>
</ObjectID>
then the tag will be renamed and the matched part of the string text will be created as a hot spot for the graphical object. Here ‘P-101’ matches the pattern and a mouse hover on the graphical object or any of the three texts will display a highlight value of ‘P-101’.
Note: If the nearby text location is not within the search area defined by the Group parameters then the text objects are treated as individual texts, for example, ‘Text123’, ‘P-101’ and ‘TextABC’. If pattern mapping matches any of these texts, then the matched part of the text will be created as a hot spot for the corresponding text object only. In this example ‘P-101’ is highlighted when hovering over only the ‘P-101’ text object.