laptop and a wrench

不具合

The ConvertWebMaptoArcGISProject arcpy function fails to replace the text value of custom text elements in a project layout based on layout options specified in the ExportWebMap JSON parameter.

最後に公開された状態: June 26, 2019 ArcGIS Pro
不具合 ID 番号 BUG-000119506
送信されましたJanuary 21, 2019
最終更新日June 5, 2024
適用対象ArcGIS Pro
見つかったバージョン2.2.4
オペレーティング システムWindows OS
オペレーティング システムのバージョン2016 64 Bit
ステータスWill Not Be Addressed

参考情報

This is user error. See http://enterprise.arcgis.com/en/server/latest/create-web-apps/windows/tutorial-publish-additional-layouts-for-printing-with-arcgis-pro.htmGo down to this bullet:- If you want to insert a custom text element, add a text element and embed the element's name in a set of open and closed curly braces, such as {parcel-id}.Curly braces are only required when you are authoring customTextElments in Pro...but the webmap_json will still have them without those braces. I.e. the user's JSON is fine. They just need to edit the text element names in Pro to have the curly braces.(I sent this info to Kory Kramer so that he can pass on the info to the user or support analyst.)

対処法

Use a for loop in the python script to iterate through each text element in the project layout and replace (overwrite) the text string for the element based on a condition. 

 

result = arcpy.mp.ConvertWebMapToArcGISProject(WebMap_as_JSON, layoutTemplate)

layout = result.ArcGISProject.listLayouts()[0]

for elm in layout.listElements("TEXT_ELEMENT"):

if elm.name == "CentreName":

elm.text = "c3ntr3"

if elm.name == "FloorLevel":

elm.text = "fl00r"

再現の手順

不具合 ID: BUG-000119506

ソフトウェア:

  • ArcGIS Pro

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動