exportMap

This function will make a copy of the Dekho client map for a requested size in pixels. There is a 1000 by 1000 pixel limit. Instead of returning the map component, when the map is ready or an error has occurred the Dekho client dispatches an event. Therefore any custom tool that calls this method will have to listen for the ExportMapEvent.

 

Note: this method does not export MDS layers added via the Admin wizard. MDS layers added as a dynamic service are ok.

Example call

Add the event listeners

FlexGlobals.topLevelApplication.addEventListener(ExportMapForCustomToolEvent.COMPLETE, completeHandler);

FlexGlobals.topLevelApplication.addEventListener(ExportMapForCustomToolEvent.ERROR, errorHandler);

call the method

parentApplication.exportMap(400, 400, true);

Example result

The ExportMapForCustomToolEvent that is dispatched contains two properties. One is an Esri Flex API Map component while the other is an error string.

 


Dekho Web Services