Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- decoupageInstance = new Decoupage(cartovista, map);
- define(['jquery', 'spectrum', 'PencilTool'], function($, spectrum, PencilTool) {
- var StatisticEnum = require('cartovista/viewer/data/StatisticEnum');
- var RGBA = require('cartovista/viewer/util/RGBA');
- var IndividualValue = require('cartovista/viewer/thematics/IndividualValue');
- var RepresentationEnum = require('cartovista/viewer/thematics/RepresentationEnum');
- var Decoupage = function(cartovista,map){
- this._initPanelSecteurs();
- }
- Decoupage.prototype._initPanelSecteurs = function(){
- var decoupage = this;
- decoupage._getCodeSecteursList();
- decoupage._createTableRows();
- }
- Decoupage.prototype._getCodeSecteursList = function(dbxEvent){
- var codeSecteurList = [];
- for (var i=0; i < this._pointsTheme._colorTheme._individualValues.length ; i++){
- codeSecteurList.push(this._pointsTheme._colorTheme._individualValues[i]._value);
- }
- this._codeSecteurList = codeSecteurList;
- //returns 11 but is called after decoupage._createTableRows() in Chrome and IE
- console.log(this._codeSecteurList.length);
- }
- Decoupage.prototype._createTableRows = function(){
- //returns 0 in Chrome and IE but returns 11 in Firefox
- console.log("codeSecteur length: " + this._codeSecteurList.length);
- }
- return Decoupage;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement