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

Function writeQueryMap

mapfile.c:4775–4788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4773}
4774
4775static void writeQueryMap(FILE *stream, int indent, queryMapObj *querymap)
4776{
4777 colorObj c;
4778
4779 indent++;
4780 writeBlockBegin(stream, indent, "QUERYMAP");
4781 MS_INIT_COLOR(c,255,255,0,255);
4782 writeColor(stream, indent, "COLOR", &c, &(querymap->color));
4783 writeDimension(stream, indent, "SIZE", querymap->width, querymap->height, NULL, NULL);
4784 writeKeyword(stream, indent, "STATUS", querymap->status, 2, MS_ON, "ON", MS_OFF, "OFF");
4785 writeKeyword(stream, indent, "STYLE", querymap->style, 3, MS_NORMAL, "NORMAL", MS_HILITE, "HILITE", MS_SELECTED, "SELECTED");
4786 writeBlockEnd(stream, indent, "QUERYMAP");
4787 writeLineFeed(stream);
4788}
4789
4790/*
4791** Initialize a webObj structure

Callers 1

msSaveMapFunction · 0.85

Calls 6

writeBlockBeginFunction · 0.85
writeColorFunction · 0.85
writeDimensionFunction · 0.85
writeKeywordFunction · 0.85
writeBlockEndFunction · 0.85
writeLineFeedFunction · 0.85

Tested by

no test coverage detected