As I write this line is highlighted in black php5_MapScript
code in mapfile
LAYER
NAMEPeru_dep
DATAdepartamentos.shp
STATUS ON
TYPEPOLYGON
CLASSITEM NOMB_DEP
CLASS
NAMELIMA
*EXPRESSION /LIMA/*
STYLE
COLOR 200 150 2
OUTLINECOLOR0 0 0
END
END
y los quiero pasar a PHP
version php
coce
// Creamos un Layer dentro de nuestro MapObj y seteamos sus propiedades
$jLayer = ms_newLayerObj($jMap);
$jLayer-set( name, Peru_dep);
$jLayer-set( type, MS_LAYER_POLYGON);
$jLayer-set( status, MS_ON);
$jLayer-set( data, departamentos.shp);
$jLayer-set( classitem, NOMB_DEP);
//Creamos un classObj dentro del LayerObj
$jClass = ms_newClassObj($jLayer);
$jClass-set( name, LIMA);
*$jClass-set( Expression, /LIMA/);*
//Creamos un styleObj dentro del classObj
$jStyle = ms_newStyleObj($jClass);
$jStyle-color-setRGB(200, 150, 2);
$jStyle-outlinecolor-setRGB(200, 200, 200);