Opened 23 years ago

Closed 21 years ago

#36 closed defect (fixed)

PHP MapScript Docs - shapeObj->draw() args have changed in MS3.5

Reported by: dmorissette Owned by: dmorissette
Priority: high Milestone:
Component: MapScript-PHP Version: 3.6
Severity: normal Keywords:
Cc: jmckenna@…

Description

"Vinko Vrsalovic B." wrote:
> 
> for ($i=0; $i<7 && (user said yes to i); $i++) {
>         $shape[i]->draw($map,$layer_lines,$image,$i,"");
> }
> 
> I was hoping for the $i parameter of the draw shape method to set
> the class on $layer_lines, but they all are drawn on class 0.
> 

OOppps... there's an error in the docs.  In MS 3.5 the shape->draw()
method doesn't take the class index argument any more.  The docs should
say:
   int draw(mapObj map, layerObj layer, imageObj img)

(and same thing with rectObj->draw()), etc.)


--------
Note: the PHP MapScript class reference doc. (XML) will have to be updated as 
well.

Change History (2)

comment:1 by jmckenna@…, 23 years ago

Cc: mckenna@… added

comment:2 by dmorissette, 21 years ago

Resolution: fixed
Status: newclosed
Version: 3.53.6
This was fixed a while ago.  For sure the 4.0 docs are up to date.
Note: See TracTickets for help on using tickets.