首页 / 浏览问题 / 云GIS / 问题详情
createTextWC()绘制文字设置样式
17EXP 2018年07月06日
plottingLayer.createTextWC(data[int].name,

 newSuperMap.Geometry.Point(x,y),
 {surroundLineType:1});

  绘制文字 样式怎么设置

  怎么样设置显示固定大小 ,及地图放大缩小的时候文字大小不变

1个回答

您好,你为什么要用plottingLayer?用标签专题图这种可以实现你的效果http://iclient.supermap.io/examples/classic/editor.html#theme_themeLabel

4,524EXP 2018年07月06日
请问您 怎么设置 createTextWC 怎么在比例 200英尺 比100米的时候显示

可以设置图层可见性

var style = { fontSize:"8px"};

plottingLayer2.createTextWC(data[int].name, new SuperMap.Geometry.Point(x,y),
  {surroundLineType:3},style);

只有在初次加载的时候 字体设置生效 地图缩放的时候文字设置失效了

...