// First try and get the pixelTolerance value from the selection controller configuration:
ClientToolbarInfo toolbarInfo = mapWidget.getMapModel().getMapInfo().getToolbar();
if (null != toolbarInfo && null != toolbarInfo.getTools()) {
for (ClientToolInfo tool : toolbarInfo.getTools()) {
if ("SelectionMode".equals(tool.getId())) {
ToolbarBaseAction action = ToolbarRegistry.getToolbarAction(tool.getId(), mapWidget);
if (action instanceof SelectionModalAction) {
for (Parameter parameter : tool.getParameters()) {
((ConfigurableAction) action).configure(parameter.getName(), parameter.getValue());
}
pixelTolerance = ((SelectionModalAction) action).getPixelTolerance();