This document is archived and information here might be outdated. Recommended version. |
Provides access to the Map Server Legend Patch Interface.
A MapServerLegendPatch object is a parameter of the GetLegendInfo method on IMapServer. Use IMapServerLegendPatch to customize the size of the legend patch and the shape of the symbol displayed on the patch. To export a single image of the legend use ExportLegend on IMapServerLayout.
Name | Description | |
---|---|---|
AreaPatch | The area patch. | |
LinePatch | The line patch. | |
PatchHeight | The patch height (in points). | |
PatchResolution | The patch resolution (dots per inch). | |
PatchWidth | The patch width (in points). |
Classes | Description |
---|---|
MapServerLegendPatch | The Map Server Legend Patch coclass contains settings about a legend patch. |
A legend patch is a rectangular image with an individual polygon, line or point symbol associated with a particular legend class. Use PatchHeight and PatchWidth to change the size of the legend patch. Use AreaPatch or LinePatch to change the shape of the symbol. If the goal is only to change the size of the patch and to retain the default shape, AreaPatch and LinePatch do not have to be set.