WebArtisan
WebArtisan

Reputation: 4227

SVG text in path element

I have svg map, but without any markings. But I want to states were designated by letters. Is there any possibility do it? Text or tooltips, any marks

enter image description here

Upvotes: 0

Views: 51

Answers (1)

Pavel Gatnar
Pavel Gatnar

Reputation: 4053

You can place text at specific coordinates, e.g.:

<text x="0" y="20" font-size="1em" fill="red">XY</text>

Upvotes: 1

Related Questions