As I write this line is highlighted in black php5_MapScript<br><br><br>code in mapfile<br>LAYER<br> NAME Peru_dep<br> DATA "departamentos.shp"<br> STATUS ON<br> TYPE POLYGON<br>
CLASSITEM NOMB_DEP<br><br> CLASS<br> NAME "LIMA"<br> <b>EXPRESSION /LIMA/</b><br> STYLE<br> COLOR 200 150 2<br> OUTLINECOLOR 0 0 0<br> END<br>
END<br>y los quiero pasar a PHP<br>version php<br><br><br>coce<br>// Creamos un Layer dentro de nuestro MapObj y seteamos sus propiedades<br> $jLayer = ms_newLayerObj($jMap);<br> $jLayer->set( "name", "Peru_dep");<br>
$jLayer->set( "type", MS_LAYER_POLYGON);<br> $jLayer->set( "status", MS_ON);<br> $jLayer->set( "data", "departamentos.shp");<br> $jLayer->set( "classitem", "NOMB_DEP");<br>
<br> //Creamos un classObj dentro del LayerObj<br> $jClass = ms_newClassObj($jLayer);<br> $jClass->set( "name", "LIMA");<br> <b>$jClass->set( "Expression", "/LIMA/");</b><br>
<br>
//Creamos un styleObj dentro del classObj<br> $jStyle = ms_newStyleObj($jClass);<br> $jStyle->color->setRGB(200, 150, 2);<br> $jStyle->outlinecolor-><div id=":1d5" class="ArwC7c ckChnd">setRGB(200, 200, 200);</div>