Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotate support for each character of text? #30

Open
hanfeisun opened this issue Jun 27, 2015 · 1 comment
Open

Rotate support for each character of text? #30

hanfeisun opened this issue Jun 27, 2015 · 1 comment

Comments

@hanfeisun
Copy link

For example, I have a character looks like this:

screen shot 2015-06-28 at 12 25 31 am

If I use this for setText() method, it will be perpendicular to the path, which is not ideal. So I need to rotate each character by 90 degree.. However, I found it may not be easy by setting the attribute of <textpath> element..

Will Leaflet.TextPath support rotation for character?

@fredericbonifas
Copy link
Collaborator

Hi @hanfeisun

Adding this feature to Leaflet.TextPath is not planned yet. You can generate a font with your arrow in the right orientation, or use an HTML charcter like ➤ (&#x27a4;).

However, please do not hesitate to submit a pull request if you work on it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants