|
Can anyone help me?
It should color diferent points according to the
different codes but it´s always black points in the map..
Thanks in advance.
$point =
ms_newPointObj();
$point->setXY($x,$y); $line =
ms_newLineObj();
$line->add($point); $feature =
ms_newShapeObj(0);
$feature->set("text"," "); // $feature->add($line); $layer = $map->getLayerByName($layer_name); $layer->addFeature($feature); switch($code){
case 3: $color[0] = 48; $color[1] = 255; $color[2] = 219; $class = ms_newClassObj($layer); $style = ms_newStyleObj($class); $class->setExpression('code =
3');
break; case
4:
$color[0] = 255; $color[1] = 48; $color[2] = 84; $class = ms_newClassObj($layer); $style = ms_newStyleObj($class $class->setExpression('id = 4'); break; ....
}
Alexandre.
|
- Re: [UMN_MAPSERVER-USERS] panning and zoomin and out, ... Luis Treviño
- Re: [UMN_MAPSERVER-USERS] panning and zoomin and ... Albert Anderson
- [UMN_MAPSERVER-USERS] Mapscript error: Fatal ... Alexandre Abramides
- Re: [UMN_MAPSERVER-USERS] Mapscript error... Alexandre Abramides
- Re: [UMN_MAPSERVER-USERS] panning and zoomin ... Luis Treviño
- Re: [UMN_MAPSERVER-USERS] panning and zoo... Albert Anderson
- Re: [UMN_MAPSERVER-USERS] panning and... Brent Pedersen
- Re: [UMN_MAPSERVER-USERS] pannin... Albert Anderson
- Re: [UMN_MAPSERVER-USERS] pa... Fawcett, David
- Re: [UMN_MAPSERVER-USERS... Albert Anderson
- Re: [UMN_MAPSERVER-USERS... Fawcett, David
- Re: [UMN_MAPSERVER-USERS... Albert Anderson
