[mapserver-users] setFilter problem (c#)
Paul james
pauljame at gmail.com
Fri Apr 3 11:21:23 PDT 2009
Hello guys...
I got a problem...
My code :
----
var _filter = "('[gid]'='10')";
var _layer = _map.MapObj.getLayerByName("X");
var _lC = _layer.clone();
_lC.setFilter(_filter);
_lC.name = "Dummy";
_lC.status = 1;
_lC.getClass(0).getStyle(0).color.setRGB(0, 250, 250);
_lC.getClass(0).getStyle(0).outlinecolor.setRGB(0, 250, 0);
_map.MapObj.insertLayer(_lC, _map.MapObj.numlayers-1);
....
-----
No error, but the filter layer doest appear... If I took of the filter line,
the layer shows up ok...
Any idea?
[]´s
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090403/c5be1f24/attachment.htm>
More information about the MapServer-users
mailing list