How to draw specifics layers of mapfile with MapScript

المشرف العام

Administrator
طاقم الإدارة
Is it possible to call a draw on a mapFile with a list of layers to include with mapScript? I have a bunch of layers defined on my mapfile but I don't want to call all of them. I don't use "STATUS DEFAULT", i would like to call specifics layers like we can do with the get parameters, for example: "LAYERS=LAYER1,LAYER2,LAYER3&...."

For now this is my code.

$oMapFinal = ms_newMapObj($filename) or die("die\n"); $oMapImageFinal = $oMapFinal->draw(); Thanks for help



أكثر...
 
أعلى