想在客户端实现,添加地图文本要素,可选中要素,可拖拽、可编辑文本内容的功能,现有代码如下:
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:"4em",
fontWeight:"bold",
fontStyle:"italic",
labelSelect:"true",
}
pointFeature.style = styleTest;
this.vectorLayer.addFeatures([pointFeature]);
用地图多拽对象:
this.dragFeature = new SuperMap.Control.DragFeature(that.vectorLayer);
无法选中;