Hello guys...<br>I got a problem...<br>My code :<br><br>----<br>var _filter = "('[gid]'='10')"; <br>var _layer = _map.MapObj.getLayerByName("X"); <br><br>var _lC = _layer.clone(); <br>
_lC.setFilter(_filter); <br>_lC.name = "Dummy";<br>_lC.status = 1;<br>_lC.getClass(0).getStyle(0).color.setRGB(0, 250, 250);<br>_lC.getClass(0).getStyle(0).outlinecolor.setRGB(0, 250, 0);<br>_map.MapObj.insertLayer(_lC, _map.MapObj.numlayers-1);<br>
....<br>-----<br><br>No error, but the filter layer doest <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: collapse; font-family: Arial; white-space: pre;">appear... If I took of the filter line, the layer shows up ok...<br>
<br>Any idea?<br><br>[]īs<br></span></span>