- I have created a class
- Created a object to that class
- Need to Create method to generate the legend style from the configuration.
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.
أكثر...