Please give a brief summary of your issue:
Create a Grouping for Measurements by Tag and count the group.
Please describe your issue and provide steps to reproduce it:
I want to they the user ability to count by tag. I want to create custom tag through which user can group the annotation and able to count.
Please provide a link to a minimal sample where the issue is reproducible:
Hello, I’m AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
To create a grouping for annotations by a custom tag and count them, you can use Apryse’s WebViewer’s AnnotationManager to manage and manipulate annotations. Here’s how you can approach this:
Some things you can try:
Use the AnnotationManager to add custom tags to your annotations. You can do this by adding custom data fields to the annotation objects.
Iterate over all annotations and group them based on the custom tags.
Use a JavaScript object or Map to keep track of the count of each group of annotations based on their tags.
Display the count of each group to the user in your application’s UI.
We have a built-in filter in the notesPanel that can filter through any specific annotation. You may also use a custom filter using setCustomNoteFilter(). More information can be found here: Apryse WebViewer Namespace: UI
For counting purposes, you may use getAnnotationsList() to look for a type of annotation you may want to count. More information here: Apryse WebViewer Class: AnnotationManager
I have created new panel for the case tag. Now I want to show the case tag on document and base on the tag I want to show the count.
Now the issue is when I try to add the tag on document it is not showing because I’m using stamp . Is there any way to show the case tag on the document.
I there any best way to show the case tag in panel.
I want to modify the existing Count Measurement functionality. Instead of a generic count, I want to count annotations by tag type .
When a user adds a Count annotation, I want to include a new “Tag” section in the Style panel, where the user can select a tag (for example, Parking, Bedroom, Washroom, etc.). Once selected, the Count annotation will be associated with that specific tag type.
If you have the selected annotation filter for the tag defined in your custom property, you can split up the count that way. This code would need to be refactored for that however.
Regarding the panels, you may have to create your own custom panel and have that component update based on the getAnnotationsList(). More information on creating a custom panel can be found here: Modular UI Panels | Apryse documentation
Thanks for the reply. Now I want to hide the tag section if user change the panel. I want to show tag section only for Style panel (Count measurement Annotation tool)