Posibility of Featuretypestyle can be blank
1Map opened this issue · 0 comments
1Map commented
SLDReader/docs/assets/sldreader.js
Line 538 in aa09cd2
Need to add:
obj.featuretypestyles = obj.featuretypestyles || [];
As in:
FeatureTypeStyle: function (element, obj) {
obj.featuretypestyles = obj.featuretypestyles || [];
var featuretypestyle = {
rules: [],
};
readNode(element, featuretypestyle);
obj.featuretypestyles.push(featuretypestyle);
},
If not, then the following line might give an error:
obj.featuretypestyles.push(featuretypestyle);
As obj.featuretypestyles
might be null