例09:凡例の追加 (adding a legend)



この例では地図に凡例を追加します。 凡例を表示するには、マップ・ファイルに LEGEND パラメータを、 テンプレート・ファイルに [legend] アイテムを追加する必要があります。 また、凡例に項目を表示するためには、マップ・ファイルの CLASS オブジェクトに NAME パラメータをセットしなければなりません。
This example adds a legend to the map. To add a legend, the mapfile LEGEND object is required, as well as the [legend] control in the HTML template. You must also set the CLASS object's NAME parameter in the mapfile.