Skip to content

Commit

Permalink
Use explicit PROCESSING FORCE_DRAW_LABEL_CACHE=FLUSH to keep room for…
Browse files Browse the repository at this point in the history
… future options (#5100)
  • Loading branch information
dmorissette committed Jun 22, 2015
1 parent 729fa9c commit e39aae5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mapdraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ imageObj *msDrawMap(mapObj *map, int querymap)
for(i=0; i<map->numlayers; i++) {

if(map->layerorder[i] != -1) {
char *force_draw_label_cache = NULL;

lp = (GET_LAYER(map, map->layerorder[i]));

if(lp->postlabelcache) /* wait to draw */
Expand Down Expand Up @@ -391,9 +393,11 @@ imageObj *msDrawMap(mapObj *map, int querymap)
}

/* Flush layer cache in-between layers if requested by PROCESSING directive*/
if (msLayerGetProcessingKey(lp, "FORCE_DRAW_LABEL_CACHE")) {
force_draw_label_cache = msLayerGetProcessingKey(lp, "FORCE_DRAW_LABEL_CACHE");
if (force_draw_label_cache &&
strncasecmp(force_draw_label_cache,"FLUSH",5)==0) {
if(map->debug >= MS_DEBUGLEVEL_V)
msDebug("msDrawMap(): PROCESSING FORCE_DRAW_LABEL_CACHE found.\n");
msDebug("msDrawMap(): PROCESSING FORCE_DRAW_LABEL_CACHE=FLUSH found.\n");
if(msDrawLabelCache(map, image) != MS_SUCCESS) {
msFreeImage(image);
#if defined(USE_WMS_LYR) || defined(USE_WFS_LYR)
Expand Down

0 comments on commit e39aae5

Please sign in to comment.