[mapserver-users] setFilter problem (c#)
Tamas Szekeres
szekerest at gmail.com
Sat Apr 4 11:52:49 PDT 2009
Paul,
Which data source are you using? It highly depends on the type of the data
source how the filter is interpreted by mapserver.
Are you sure there are matching features within the extent you have?
Best regards,
Tamas
2009/4/3 Paul james <pauljame at gmail.com>
> 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
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090404/6dcc76c7/attachment.htm>
More information about the MapServer-users
mailing list