您好
1.文本
var point = new SuperMap.Geometry.Point(0, 0);
pointFeature = new SuperMap.Feature.Vector(point);
pointFeature.style = {
strokeColor: "#CAFF70",
fillColor: "#DC143C",
strokeWidth: 2,
fillOpacity: 0.8,
fontWeight: "bold",
label: "东方\n Eastern",
fontColor: "#FFF0F5"
};
vectorlayer.addFeatures(pointFeature);
2.制作标签专题图的形式
可参考https://iclient.supermap.io/examples/classic/editor.html#theme_themeLabelLayer
//新建一个策略
strategy = new SuperMap.Strategy.GeoText();
//新建一个标签专题图层
vectorLayer = new SuperMap.Layer.Vector("Label", {strategies: [strategy]});
//设置标签的样式
strategy.style = {
fontColor: "#FF7F00",
fontWeight: "bolder",
fontSize: "14px",
fill: true,
fillColor: "#FFFFFF",
fillOpacity: 1,
stroke: true,
strokeColor: "#8B7B8B"
};