NieuwlandGeo/SLDReader

Posibility of Featuretypestyle can be blank

1Map opened this issue · 0 comments

1Map commented

var featuretypestyle = {

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