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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -