{ "name": "ExportWebMap", "displayName": "Export Web Map", "description": "This tool takes the state of a web application (for example, included services, layer visibility settings, and client-side graphics) and returns a printable page layout or basic map of the specified area of interest., The input for Export Web Map is a piece of text in JavaScript object notation (JSON) format describing the layers, graphics, and other settings in the web map. The JSON must be structured according to the ExportWebMap specification in the ArcGIS Help., This tool is shipped with ArcGIS Server to support web services for printing, including the preconfigured service named PrintingTools. The ArcGIS web APIs for JavaScript, Flex and Silverlight use the PrintingTools service to generate images for simple map printing.", "category": "", "helpUrl": "http://dhds.nha.co.th/arcgis/rest/directories/arcgisoutput/NHA_NON/ExportWebMap_Smart_GPServer/NHA_NON_ExportWebMap_Smart/ExportWebMap.htm", "executionType": "esriExecutionTypeSynchronous", "parameters": [ { "name": "Web_Map_as_JSON", "dataType": "GPString", "displayName": "Web Map as JSON", "description": "A JSON representation of the state of the map to be exported as it appears in the web application. See the ExportWebMap specification in the ArcGIS Help to understand how this text should be formatted. The ArcGIS web APIs (for JavaScript, Flex, Silverlight, etc.) allow developers to easily get this JSON string from the map.", "direction": "esriGPParameterDirectionInput", "defaultValue": " {\"mapOptions\":{\"showAttribution\":false,\"extent\":{\"type\":\"extent\",\"xmin\":11182583.283311581,\"ymin\":1533062.4291981107,\"xmax\":11182589.977804467,\"ymax\":1533068.92546983,\"spatialReference\":{\"wkid\":102100,\"latestWkid\":3857}},\"spatialReference\":{\"wkid\":102100,\"latestWkid\":3857},\"scale\":36111.909643},\"operationalLayers\":[{\"id\":\"BASEMAP\",\"title\":\"BASEMAP\",\"opacity\":1,\"minScale\":18489297.737236,\"maxScale\":288.0000000000001,\"url\":\"http://dhds.nha.co.th/arcgis/rest/services/NHA_BasemapCacheWM_201301/MapServer\"},{\"id\":\"NHA_SMART\",\"title\":\"NHA_SMART\",\"opacity\":1,\"minScale\":0,\"maxScale\":0,\"url\":\"http://dhds.nha.co.th/arcgis/rest/services/NHA_NON/NHA_SMART_DYNAMIC/MapServer\"},{\"id\":\"gLayerPolygon\",\"opacity\":1,\"minScale\":0,\"maxScale\":0,\"featureCollection\":{\"layers\":[]}},{\"id\":\"gLayerPolyline\",\"opacity\":1,\"minScale\":0,\"maxScale\":0,\"featureCollection\":{\"layers\":[]}},{\"id\":\"gLayerPoint\",\"opacity\":1,\"minScale\":0,\"maxScale\":0,\"featureCollection\":{\"layers\":[]}},{\"id\":\"gIdentify\",\"opacity\":1,\"minScale\":0,\"maxScale\":0,\"featureCollection\":{\"layers\":[]}},{\"id\":\"gFavourite\",\"opacity\":1,\"minScale\":0,\"maxScale\":0,\"featureCollection\":{\"layers\":[]}},{\"id\":\"clusters\",\"opacity\":1,\"minScale\":0,\"maxScale\":0,\"featureCollection\":{\"layers\":[{\"layerDefinition\":{\"name\":\"pointLayer\",\"geometryType\":\"esriGeometryPoint\",\"fields\":[{\"name\":\"clusterCount\",\"type\":\"esriFieldTypeDouble\"}]},\"featureSet\":{\"geometryType\":\"esriGeometryPoint\",\"features\":[{\"geometry\":{\"x\":11182381.485518135,\"y\":1533135.4995075627,\"spatialReference\":{\"wkid\":102100}},\"attributes\":{\"clusterCount\":1,\"clusterId\":1,\"extent\":[11182381.485518135,1533135.4995075627,11182381.485518135,1533135.4995075627]},\"symbol\":{\"color\":[255,255,255,255],\"size\":12,\"angle\":0,\"xoffset\":0,\"yoffset\":0,\"type\":\"esriSMS\",\"style\":\"esriSMSCircle\",\"outline\":{\"color\":[255,0,255,255],\"width\":2.25,\"type\":\"esriSLS\",\"style\":\"esriSLSSolid\"}}}]}}]}},{\"id\":\"gEdit_SearchResultGraphicsLayer\",\"opacity\":1,\"minScale\":0,\"maxScale\":0,\"featureCollection\":{\"layers\":[{\"layerDefinition\":{\"name\":\"pointLayer\",\"geometryType\":\"esriGeometryPoint\"},\"featureSet\":{\"geometryType\":\"esriGeometryPoint\",\"features\":[{\"geometry\":{\"x\":11182381.485518135,\"y\":1533135.4995075627,\"spatialReference\":{\"wkid\":102100,\"latestWkid\":3857}},\"symbol\":{\"angle\":0,\"xoffset\":0,\"yoffset\":13.875,\"type\":\"esriPMS\",\"url\":\"js/nha/images/pin_standard.png\",\"width\":19.5,\"height\":27.75}}]}}]}},{\"id\":\"gEdit_HouseDetail\",\"opacity\":1,\"minScale\":0,\"maxScale\":0,\"featureCollection\":{\"layers\":[]}},{\"id\":\"gBooking\",\"opacity\":1,\"minScale\":0,\"maxScale\":0,\"featureCollection\":{\"layers\":[{\"layerDefinition\":{\"name\":\"gBooking\",\"geometryType\":\"esriGeometryPoint\",\"drawingInfo\":{\"renderer\":{\"type\":\"simple\",\"symbol\":{\"angle\":0,\"xoffset\":0,\"yoffset\":13.875,\"type\":\"esriPMS\",\"url\":\"http://nhahome.nha.co.th/js/nha/images/pin_sale_building.png\",\"width\":19.5,\"height\":27.75}}},\"fields\":[{\"name\":\"OBJECTID\",\"type\":\"esriFieldTypeOID\",\"alias\":\"ObjectId\"}]},\"featureSet\":{\"geometryType\":\"esriGeometryPoint\",\"features\":[{\"geometry\":{\"x\":11182586.630558025,\"y\":1533065.6773339703,\"spatialReference\":{\"wkid\":102100,\"latestWkid\":3857}},\"attributes\":{\"OBJECTID\":-1}}]}}]}},{\"id\":\"esrith.amos.map.Map_1_graphics\",\"opacity\":1,\"minScale\":0,\"maxScale\":0,\"featureCollection\":{\"layers\":[]}}],\"exportOptions\":{\"outputSize\":[340.157480315,226.7716535433],\"dpi\":96}}", "parameterType": "esriGPParameterTypeRequired", "category": "" }, { "name": "Output_File", "dataType": "GPDataFile", "displayName": "Output File", "description": "Output file name. The extension of the file depends on the output file format.", "direction": "esriGPParameterDirectionOutput", "defaultValue": null, "parameterType": "esriGPParameterTypeRequired", "category": "" }, { "name": "Format", "dataType": "GPString", "displayName": "Format", "description": "The format in which the map image for printing will be delivered. The following strings are accepted. For example: PNG8 (default if the parameter is left blank) PDF PNG32 JPG GIF EPSSVGSVGZ", "direction": "esriGPParameterDirectionInput", "defaultValue": "PNG32", "parameterType": "esriGPParameterTypeOptional", "category": "", "choiceList": [ "PDF", "PNG32", "PNG8", "JPG", "GIF", "EPS", "SVG", "SVGZ" ] }, { "name": "Layout_Template", "dataType": "GPString", "displayName": "Layout Template", "description": "Either a name of a template from the list or the keyword MAP_ONLY. When MAP_ONLY is chosen or an empty string is passed in, the output map does not contain any page layout surroundings (for example title, legends, scale bar, and so forth)", "direction": "esriGPParameterDirectionInput", "defaultValue": "MAP_ONLY", "parameterType": "esriGPParameterTypeOptional", "category": "", "choiceList": [ "A3 Landscape", "A3 Portrait", "A4 Landscape", "A4 Portrait", "Letter ANSI A Landscape", "Letter ANSI A Portrait", "Tabloid ANSI B Landscape", "Tabloid ANSI B Portrait", "MAP_ONLY" ] } ] }