Skip to content

How to render text annotation on frontend? #8

Discussion options

You must be logged in to vote

I was able to create annotation using numpy which "draws" those characters instead of being able to pass "text" type annotation.

annotations.append({
                'type': 'polyline',
                'points': [[segment[0][0], segment[0][1], 0.0], [segment[1][0], segment[1][1], 0.0]],
                'closed': False,
                'fillColor': 'rgba(0,0,0,0)',
                'lineColor': color,
                'lineWidth': line_width
            })

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by andreped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants