szgeoinfo.style.Text

Class: szgeoinfo.style.Text


new Text(font, offsetX, offsetY, text, fill, stroke, settextcall)

标注对象

Parameters:
Name Type Description
font string

字体,默认'10px sans-serif'

offsetX number

x偏离位置,默认0

offsetY number

y偏离位置,默认0

text string

位置内容

fill szgeoinfo.style.Fill

填充颜色

stroke szgeoinfo.style.Stroke

边框颜色

settextcall function

设置文字回掉函数

Example
var text=new szgeoinfo.style.Text('bold 24px 宋体',0,0,'',fill,stroke,setFeatureText);//回调函数