Add a style sheet

Updated at:

You can use OGC Styled Layer Descriptor (SLD) standard files to specify the style of vector map services. This topic describes how to add a style sheet.

Prerequisites

The local SLD style file is ready.

Procedure

  1. Log on to the Data Resource Platform console.

  2. In the upper-left corner of the page, click the 导航图标 icon, and select Collaboration.

  3. In the top menu bar, click the 选择工作组 icon, select the target workspace, and click Asset Processing.

  4. In the navigation pane on the left, click the API icon, and select API Development > Spatial Service API.

  5. On the Spatial Service API page, click Style Sheet Management.

  6. On the Style Sheet Management tab, click Add Style Sheet.

  7. In the Add Style Sheet panel, upload the SLD style file, enter a name and select a type for the style sheet, and then click Complete.

Related operations

On the Style Sheet Management page, you can manage style sheets as follows:

Operation

Description

Edit a style sheet

Click Edit in the Actions column for the target style sheet, and then edit the description of the service and the style sheet.

Delete style sheets

  • Single deletion: In the Actions column for the style sheet that you want to delete, click Delete.

  • Batch deletion: Select the style sheets that you want to delete and click Batch Delete in the lower-left corner of the page.