The easiest way to get familiar with MapServer Studio is to open a template map ans start playing around with the Mapfile syntax. The official MapServer documentation for Mapfiles is an excellent resource, and the Introduction to the Mapfile provides a good overview.
To get started edit the Mapfile text in the panel on the left, and hit the “Serve” button to see the changes in the view on the right.
Below is a minimal working Mapfile you can use in MapServer Studio to generate a map.
EXTENT -180 -90 180 90
OUTLINECOLOR 50 50 50
Setting Map Extents#
When zooming and panning in the viewer you will see the location details output at the bottom of the user interface. You can copy the map extent into your Mapfile to set the initial Map extent when serving or creating the map.
Current map extent: -9243843.886040376 871650.7015713183 -5614755.111948866 3764292.59054384
Zoom level: 5.365890675741148
MapServer Studio is pre-configured to work with the Natural Earth datasets. To browse these datasets you can use the OGC Features API Browser. In addition data can be added from any public S3-compatible bucket.
Name value for a dataset and use this in the
DATA clause e.g.