In Studio click on the Map Source icon for the Map Source whose .map file you wish to edit and select the Map Editor tab.
Note |
---|
In Studio, Layer names should only contain letters, numbers, spaces, hyphens and underscores. In MapServer, it is recommended that the name not contain spaces, special characters, or begin with a number (which could cause problems through interfaces such as OGC services) |
Note |
---|
From version 5.4 you will be able to access the Map Editor by clicking the Edit button for an individual layer e.g. |
...
This is the actual code Editing pane and shows the code for the map file. Any errors are underlined by a red squiggle whereas warnings are underlined with a blue squiggle. Any changes that you make can be seen immediately using the Map Viewer but will update the live configuration file until you click Save.
Editing Values
If you select an entry in the Editing pane it will be
Highlight |
---|
highlighted in yellow |
...
You can also change them by either typing directly over them in the Editing pane.
Finding Values
If you wish to find a specific word in the .map file you may use Ctrl F to display a Find & Replace dialog.
Using the Toolbar
There is a Toolbar at the top of the Editing pane for common functions:
...
This is underneath the Editing pane and has three tabs. If you double click on an entry the Editing pane will be positioned to that line and it will be highlighted.
Layers
Selecting this tab will display the list of Layers in your selected map file. The tab will also display a total count of the number of layers.
...
In Studio, Layer names should only contain letters, numbers, spaces, hyphens and underscores.
...
Errors
Selecting this tab will display the list of Errors in your map file together with the relevant line number in the Map Editor for you to fix the error. The tab will also display a total count of the number of errors.
Warnings
Selecting this tab will display the list of Warnings in your map file together with the relevant line number in the Map Editor. The tab will also display a total count of the number of warnings.
...