-
Notifications
You must be signed in to change notification settings - Fork 318
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
How to display country names in Polygons? #57
Comments
@jinzhe you have |
After using label, it can be displayed, but Chinese cannot be displayed. Can you tell me how to use labelTypeface? Such as using this https://www.wjceo.com/lib/fonts/MicrosoftYaHei_Regular.json import facetype from "./facetype";
...
world.labelText('label')
.labelSize(1.2)
.labelDotRadius(0.4)
.labelAltitude(0.01)
.labelDotOrientation(d =>'top')
.labelColor(d => "#FDCA69")
.labelTypeFace(facetype) But running error! |
Thank you, it has been resolved! |
This is my code
|
I want to display the country name in the polygon, but the api does not seem to have a relevant method.
The text was updated successfully, but these errors were encountered: