SuperMap.Marker 在classic api中只提供了可以设置imgicon的参数。不能为其设置style。如果你那边想为点设置数字,建议使用
SuperMap.Feature.Vector对象可以设置style
var geometry = new SuperMap.Geometry.Point(105, 35);
var pointFeature = new SuperMap.Feature.Vector(geometry);
var styleTest = {
label:"supermap",
fontColor:"#0000ff",
fontOpacity:"0.5",
fontFamily:"隶书",
fontSize:"8em",
fontWeight:"bold",
fontStyle:"italic",
labelSelect:"true",
}
pointFeature.style = styleTest;
vectorLayer.addFeatures([pointFeature]);