[ka-Map-users] ColorObj
Gupteshwar Joshi
gupteshwar.joshi at gmail.com
Thu Apr 5 06:24:53 EDT 2007
Hello,
I am exploring with ka-map from last 2 and half month
as to develope GIS system. Now I am trying to put
QueryBuilder (help of ka-routing example ) with the existing basic system.
For that I successfully carried out work for the simple one layered queries.
But before proceeding to the complex cross layered queries I want to
introduce the
styling the query results on user defined values.
Where I stucked at .
I am currently trying to use user defined colors instead defaults.
For that I tried following three methods.
$l=$oMap->getLayerByName("dquery_polygon");
$c = $l->getClass(0);
$s = $c->getStyle(0);
a)
$s->set('outlinecolor','255 0 0');
b)
$colArr = explode(" ",$_GET[$k]);
$s->color->setRGB($colArr[0],$colArr[1],$colArr[2]);
$s->outlinecolor->setRGB($colArr[0],$colArr[1],$colArr[2]);
c)
$color = $s->outlinecolor;
$color->red = $colArr[0];
$color->green = $colArr[1];
$color->blue = $colArr[2];
But not getting the desired output layer gets formed but unable to see
output which
was there before introducing this output formatting.
And not getting any specific error also.
Please help me in this regards.
Regards
--
(((())))
(@ @)
(_)
+----oOO------------Ooo----------+
| Gupteshwar D Joshi |
| |
+------------------------------------+
|___|___|
| | | |
ooO Ooo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20070405/78810166/attachment.html
More information about the ka-Map-users
mailing list