Skip to content

Commit

Permalink
Change legend symbol scale factor when SIZEUNITS is set to METERS
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrik Sylve authored and jmckenna committed Jul 12, 2021
1 parent a43c0c0 commit 39a4ead
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maplegend.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ int msDrawLegendIcon(mapObj *map, layerObj *lp, classObj *theclass,
/*
** now draw the appropriate color/symbol/size combination
*/

/* Scalefactor will be infinity when SIZEUNITS is set in LAYER */
if(lp->scalefactor == INFINITY) {
lp->scalefactor = 1.0;
}

switch(type) {
case MS_LAYER_POINT:
marker.x = dstX + MS_NINT(width / 2.0);
Expand Down

0 comments on commit 39a4ead

Please sign in to comment.