Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

Updating a result map service

$
0
0
Hey all, I'm trying to use the Heat Map widget, which only takes map services that have point results.

So, I created a geoprocessing tool that takes a polygon layer (which I published as a feature service), generates centroids, and adds the centroids to the map. I checked the box to 'view result with a map service'. I then created a Flex Viewer application, added the polygon feature service and the centroid map service as operational layers. Next, I added a geoprocessing widget using the centroid GP service.

My hope was that, if a user added a new polygon to the feature service and then ran the centroid GP widget, the centroid map service would update to include this newly generated centroid, but that is not the case. The result shows the new centroid, but the centroid map service does not update.

I'm wondering a couple things. First, does anyone know if there is a way to update an actual map service once a GP tool has been run? I ask this because if the user adds a new polygon and generates the centroids, I want the Heat Map widget to run on this updated centroid layer so it includes all of the centroids, rather than just the ones that were in the service when it was initially published.

And second, if that isn't doable, is there a way to use the Heat Map widget with an output operational layer, rather than with a map service? I'm guessing not, but maybe it's possible to run the centroid GP widget, add the results as an operational layer, and then have the Heat Map widget use this operational layer as the input layer.

Thanks for any and all help.

Viewing all articles
Browse latest Browse all 2097

Trending Articles