我使用JavaScript的GetFeaturesBySQLService方法获取了feature。
然后添加到图层:
function processCompleted(getFeaturesEventArgs) {
var i, len, features, feature, result = getFeaturesEventArgs.result;
if (result && result.features) {
features = result.features
for (i = 0, len = features.length; i < len; i++) {
feature = features[i];
feature.style = style;
vectorLayer.addFeatures(feature);
}
}
}
我看例子里面的样式是这样的:
style = {
strokeColor: "#304DBE",
strokeWidth: 1,
fillColor: "#304DBE",
fillOpacity: "0.8"
}
我想给点符号换成图片,不单是颜色大小这些,怎么做,哪里有具体的文档?js的文档还能再详细点吗?