javascript - Method to get the style value from the object class? -
- i have created class
- created object class
- need create method generate legend style configuration.
here code example,
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 the style above object class.
i new javascript. thanks
Comments
Post a Comment