{ "name": "Script", "displayName": "Export_webmap_mike", "description": "Returns the content\nof layout templates in JavaScript Object Notation\n(JSON) format. Layout files (.pagx files) located in a folder are used as layout templates.", "category": "", "helpUrl": "https://cpudgiapp.bangkok.go.th/arcgis/rest/directories/arcgisoutput/test_mike/Script_6_GPServer/test_mike_Script_6/Script.htm", "executionType": "esriExecutionTypeSynchronous", "parameters": [ { "name": "Web_Map_as_JSON", "dataType": "GPString", "displayName": "Web_Map_as_JSON", "description": "Web_Map_as_JSON", "direction": "esriGPParameterDirectionInput", "defaultValue": { "mapOptions": { "showAttribution": true, "extent": { "xmin": 1.119122668915029E7, "ymin": 1513577.7572054402, "xmax": 1.1238159024517326E7, "ymax": 1563491.136675593, "spatialReference": {"wkid": 102100} }, "spatialReference": {"wkid": 102100}, "scale": 288895.277144 }, "operationalLayers": [ { "id": "agolbasemap", "title": "AGOL Basemap", "opacity": 1, "minScale": 5.91657527591555E8, "maxScale": 1128.497176, "url": "https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" }, { "id": "gibasemap", "title": "ข้อมูลแผนที่ฐาน", "opacity": 1, "minScale": 0, "maxScale": 0, "url": "https://cpudgiapp.bangkok.go.th/arcgis/rest/services/TEST/ImpMap/MapServer" } ], "exportOptions": { "outputSize": [ 670, 500 ], "dpi": 96 }, "layoutOptions": { "titleText": "ArcGIS Web Map", "authorText": "", "copyrightText": "", "customTextElements": [ {"descName": "ทดสอบ Print Map"} ], "scaleBarOptions": { "metricUnit": "esriKilometers", "metricLabel": "km", "nonMetricUnit": "esriMiles", "nonMetricLabel": "mi" }, "legendOptions": { "operationalLayers": [ { "id": "gibasemap", "subLayerIds": [ 0, 1 ] } ] } } }, "parameterType": "esriGPParameterTypeRequired", "category": "" }, { "name": "Format", "dataType": "GPString", "displayName": "Format", "description": "Format", "direction": "esriGPParameterDirectionInput", "defaultValue": "pdf", "parameterType": "esriGPParameterTypeRequired", "category": "", "choiceList": [ "png", "jpg", "pdf" ] }, { "name": "Layout_Template", "dataType": "GPString", "displayName": "Layout_Template", "description": "Layout_Template", "direction": "esriGPParameterDirectionInput", "defaultValue": "รูปแบบทั่วไปแบบที่1(A3-แนวนอน)", "parameterType": "esriGPParameterTypeRequired", "category": "", "choiceList": [ "รูปแบบทั่วไปแบบที่1(A3-แนวตั้ง)", "รูปแบบทั่วไปแบบที่1(A3-แนวนอน)", "รูปแบบทั่วไปแบบที่1(A4-แนวตั้ง)" ] }, { "name": "Output_File", "dataType": "GPDataFile", "displayName": "Output_File", "description": "", "direction": "esriGPParameterDirectionOutput", "defaultValue": null, "parameterType": "esriGPParameterTypeDerived", "category": "" } ] }