@@ -274,6 +274,12 @@ class WeatherMap extends WeatherMapBase
274274 var $ coverage = array ();
275275 var $ colourtable = array ();
276276 var $ warncount = 0 ;
277+ var $ numscales = array ();
278+ var $ dumpconfig ;
279+ var $ labelstyle ;
280+ var $ fonts ;
281+ var $ basehref ;
282+ var $ image ;
277283
278284 function WeatherMap (){
279285 return __construct ();
@@ -503,7 +509,7 @@ function myimagestring($image, $fontnumber, $x, $y, $string, $colour, $angle = 0
503509 }
504510
505511 if (($ fontnumber > 0 ) && ($ fontnumber < 6 )) {
506- imagestring ($ image , $ fontnumber , $ x , $ y - imagefontheight ($ fontnumber ), $ string , $ colour );
512+ imagestring ($ image , $ fontnumber , ( int ) $ x , ( int ) $ y - imagefontheight ($ fontnumber ), $ string , $ colour );
507513 if ($ angle != 0 ) {
508514 wm_warn ("Angled text doesn't work with non-FreeType fonts [WMWARN02] \n" );
509515 }
@@ -1106,7 +1112,7 @@ function DrawLabelRotated(
11061112 )) {
11071113 $ bgcol = myimagecolorallocate ($ im , $ bgcolour [0 ], $ bgcolour [1 ], $ bgcolour [2 ]);
11081114 # imagefilledrectangle($im, $x1, $y1, $x2, $y2, $bgcol);
1109- wimagefilledpolygon ($ im , $ points , 4 , $ bgcol );
1115+ wimagefilledpolygon ($ im , array_slice ( $ points, 0 , 8 ) , 4 , $ bgcol );
11101116 }
11111117
11121118 if ($ outlinecolour != array
@@ -1117,7 +1123,7 @@ function DrawLabelRotated(
11171123 )) {
11181124 $ outlinecol = myimagecolorallocate ($ im , $ outlinecolour [0 ], $ outlinecolour [1 ], $ outlinecolour [2 ]);
11191125 # imagerectangle($im, $x1, $y1, $x2, $y2, $outlinecol);
1120- wimagepolygon ($ im , $ points , 4 , $ outlinecol );
1126+ wimagepolygon ($ im , array_slice ( $ points, 0 , 8 ) , 4 , $ outlinecol );
11211127 }
11221128
11231129 $ textcol = myimagecolorallocate ($ im , $ textcolour [0 ], $ textcolour [1 ], $ textcolour [2 ]);
0 commit comments