javascript - Method to get the style value from the object class? -


  1. i have created class
  2. created object class
  3. 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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -