添加场景描述
场景名称和描述显示在 Acute3D Web Viewer 中。场景名称和描述均可在 Scene/YourProduction.3mx 文件中定义。您可以使用文本编辑器打开该文件,然后替换名称和描述标签。
例如,名为YourProduction的生产项目将具有默认根 YourProduction.3mx,如下所示:
{ "3mxVersion": 1, "name": " YourProduction", "description": "Scene generated by ContextCapture, copyright <a href='http://www.bentley.com' target='_blank'>Bentley</a>", "logo": "logo.png", "sceneOptions": [{"navigationMode":"PAN"}], "layers": [ { "type": "meshPyramid", "id": "mesh0", "name": "YourProduction", "description": "Model generated by ContextCapture, copyright <a href='http://www.bentley.com' target='_blank'>Bentley</a>", "SRS": "– given SRS –", "SRSOrigin": [0,0,0], "root": "Data/YourProduction.3mxb" } ] }
要自定义 Web Viewer 中显示的消息,您必须修改以粗体显示的名称和描述标签。该 Web 应用程序支持场景描述中的 html 标签。例如,以下标签:
"description":"Scene generated by ContextCapture, ©<a href='http://www.bentley.com' target='_blank'>Bentley</a>",
将在应用程序中显示如下:
错误:"description":"Scene generated by ContextCapture, copyright <a href="http://www.bentley.com" target="_blank">Bentley</a>"
如果确实需要在描述中使用引号,请使用 ' 或 \":
正确:"description":"Scene generated by ContextCapture, copyright <a href=\"http://www.bentley.com\" target=\"_blank\">Bentley</a>"