if (MapLayerInfo.TYPE_VECTOR == type || MapLayerInfo.TYPE_REMOTE_VECTOR == type) {
includeSampleData = true;
}
}
if(includeSampleData) {
SequenceFactory<Feature> generatorFactory = new PlainFolderSequenceFactory(encodingContext);
SequenceList<Feature> folders = new SequenceList<Feature>(generatorFactory);
encodingContext.addFeatures(doc, folders);
}
return new KmlEncodingBundle(kml, encodingContext);