mirror of
https://github.com/JudeHu/maptalks.TextPath.git
synced 2026-01-18 16:21:57 +00:00
Update index.js
This commit is contained in:
parent
16881e7880
commit
79e2d2e169
2
index.js
2
index.js
@ -285,7 +285,7 @@ const options = {
|
||||
export class TextPath extends LineString {
|
||||
_paintOn(ctx, points, lineOpacity, fillOpacity, dasharray) {
|
||||
delDuplicatePt(points); // paint smoothline error when adjacent-points duplicate
|
||||
if (this.options['text']){
|
||||
if (this.options['textName']){
|
||||
let fontSize = this.options["fontSize"];
|
||||
if(this.options["fontSize"].indexOf("px") != -1){
|
||||
fontSize = this.options["fontSize"];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user