这是我的代码示例,
ntt = {};
ntt.pgp = ntt.pgp || {};
ntt.pgp.StyleManager = function(opts){
this.styleConfig = {
site: {
legendText: [{
strokeWidth: 2,
storkeColor: 'red',
fillColor: 'rgba(0, 0, 255, 0.1)',
displayText: 'Polygon'
}]
}
};
};
ntt.pgp.StyleManager.prototype.createLegend = function(layerId) {
// how to get the the style from the above object class.
我是JavaScript的新手。感谢