MCPcopy Index your code
hub / github.com/MapServer/MapServer / initLegend

Function initLegend

mapfile.c:4416–4434  ·  view source on GitHub ↗

** Initialize, load and free a legendObj structure */

Source from the content-addressed store, hash-verified

4414** Initialize, load and free a legendObj structure
4415*/
4416void initLegend(legendObj *legend)
4417{
4418 legend->height = legend->width = 0;
4419 MS_INIT_COLOR(legend->imagecolor, 255,255,255,255); /* white */
4420 MS_INIT_COLOR(legend->outlinecolor, -1,-1,-1,255);
4421 initLabel(&legend->label);
4422 legend->label.position = MS_XY; /* override */
4423 legend->keysizex = 20;
4424 legend->keysizey = 10;
4425 legend->keyspacingx = 5;
4426 legend->keyspacingy = 5;
4427 legend->status = MS_OFF;
4428 legend->transparent = MS_NOOVERRIDE;
4429 legend->interlace = MS_NOOVERRIDE;
4430 legend->position = MS_LL;
4431 legend->postlabelcache = MS_FALSE; /* draw with labels */
4432 legend->template = NULL;
4433 legend->map = NULL;
4434}
4435
4436void freeLegend(legendObj *legend)
4437{

Callers 1

initMapFunction · 0.85

Calls 1

initLabelFunction · 0.85

Tested by

no test coverage detected