<div dir="ltr">Hello,<br>I am trying to draw tornado paths on my map that I am creating, but I am having a little bit of trouble because now it won't even plot the initial point on my map. The following is my code for attempting to draw a line from start to finish. If anyone has any helpful information, it would be greatly appreciated<br>
<br>while($row=mysql_fetch_assoc($result)){<br> $mypoint=ms_newPointObj();<br> $mypoint->setXY($row['lon_td'],$row['lat_td']);<br> $myline=ms_newLineObj();<br> $myline->add($mypoint);<br>
$endpoint=ms_newPointObj();<br> $endpoint->setXY($row['lon_lift'],$row['lat_lift']);<br> $myline->add($endpoint);<br> $mypoint->draw($map,$this_layer_tornado,$image,0,'');<br>
} <br><br>//Create the shape object that will be added to the layer<br>$shape=ms_newShapeObj(MS_SHAPE_LINE);<br>$shape->add($myline);<br>$this_layer_tornado->addFeature($shape);<br><br>Thank you,<br>Lena<br clear="all">
<br>-- <br>*Lena Olympio*
</div>