I am using the following function to create smart mapping. After this method is done, I need to use another function to change the classificationMethod string from "quantile" to "natural break"
function createRenderer(field) {
//smart mapping functionality begins
smartMapping.createClassedColorRenderer({
layer: layer,
field: field,
basemap: map.getBasemap(),
classificationMethod: "quantile"
}).then(function (response) {
layer.setRenderer(response.renderer);
layer.redraw();
createLegend(map, layer, field);
});
}
My question is: is there any statement that I can change the classsificationMethod value from “quantile” to “natural break” outside the scope of function createRenderer() {….}
For example:
smartMapping.createClassedColorRenderer.classficationMethod = “equal-interval”;
Is this correct? Thanks!