If you want to manually edit the SLD for the selected Layer then click on the Advanced tab.
If you manually edit the SLD via the Advanced tab and you add entries that cannot be handled by the SLD Style Editor then the Advanced tab will be your only option.
This is the actual code editing pane and shows the code for the SLD. If you wish to find a specific word in the SLD you may use Ctrl F to display a Find & Replace dialog.
Here you can manually configure the style of your OGC Layer. Astun supply some default SLD files in the folder specified in the iShare Settings General tab SldSnippetDefinitionPath. For more information on SLD please refer to the GeoServer documentation which has plenty of examples http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/index.html.
Toolbar
There is a Toolbar at the top of the Editing pane for common functions:
- Undo - the last action
- Redo - the last action
- Cut - the selected data
- Copy - the selected data to the clipboard
- Paste - from the clipboard into the cursor position
- Currently available snippets - allows you to insert a selected snippet at the current cursor position.
- Format the SLD - clicking this button will format the SLD for you.
Using an existing SLD
You may have an existing SLD that you wish to use to style your OGC Layer in iShare. If you wish to use this in iShare then you will need to do the following:
- Open the SLD in a text editor, such as Notepad++.
- In Studio, select the OGC Layer to which you wish to apply the SLD and click Modify Style.
- Select the Advanced tab.
- From your original SLD only extract the information for the Rule i.e. <Rule> ... </Rule> (see the above example SLD for details) as iShare does not need the rest of the information.
- Select the existing Rule in the SLD Style Editor and replace with the Rule you have extracted from your SLD.
- Click OK to return to the Layer
- Save your changes.
You can only have one Rule per OGC Layer in iShare.