我想在图像上显示计数,我添加了这样的图层:
var vector = new OpenLayers.Layer.Vector("Test", {
displayInLayerSwitcher: false
});
vector.styleMap.styles["default"].addRules([
new OpenLayers.Rule({
"maxScaleDenominator": 136495,
symbolizer: {
externalGraphic: "../funnel/ico/blank.png",
graphicWidth: 20,
graphicHeight: 20,
graphicOpacity:1,
label: "${count}",
labelOutlineWidth: 1,
fontColor: "#ffffff",
fontOpacity: 0.8,
fontSize: "12px"
}
})
]);
但是标签显示在图像下方,标签在图标下方
像空的,但我想在像这样的图形上添加标签-图标顶部的标签
怎么做?