當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Python ArcGIS AssignmentIntegrationManager用法及代碼示例

本文簡要介紹 python 語言中 arcgis.apps.workforce.managers.AssignmentIntegrationManager 的用法。

用法:

class arcgis.apps.workforce.managers.AssignmentIntegrationManager(project)

這管理項目中的分配集成它可以從項目中訪問為 integrations

對於版本 2(offline-enabled 項目),集成由對象 Integration 對象表示,並且可以按照與分配、分配類型、調度程序、項目和工作人員對象相同的方式進行更新。

對於版本 1 項目,Workforce 中的集成包含一個格式化的字典。兩個例子如下所示:

navigator_integration = {
    "id": "default-navigator",
    "prompt": "Navigate to Assignment",
    "urlTemplate": "arcgis-navigator://?stop=${assignment.latitude},${assignment.longitude}&stopname=${assignment.location}&callback=arcgis-workforce://&callbackprompt=Workforce"
}

explorer_integration = {
    "id": "default-explorer",
    "prompt": "Explore at Assignment",
    "assignmentTypes": {
        "1": {
            "urlTemplate": "arcgis-explorer://?itemID=651324c8661b42c897657f8afbe846qe&center=${assignment.latitude},${assignment.longitude}&scale=9000"
        }
}

可以使用 integrations 模塊生成 urlTemplate

Parameter

Description

project

必需的 Project 。要管理的項目。

相關用法


注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.apps.workforce.managers.AssignmentIntegrationManager。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。