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 <paulj...@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@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to