When I upload a shapefile using the existing WAB Geoprocessing widget Shapefile uploader. Below is the screenshot. What could be the cause of the problem? The image below was supposed to show the shape of Kenya. The issue happens in other polygons too.
The reason for the problem was the spatial reference for the Shapefile uploader (wkid: 4326) was different from the map spatial reference (wkid: 102100). When I changed it, it started to render the shapes correctly.