<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Hi Friends,</DIV>
<DIV> </DIV>
<DIV>I have the next case.</DIV>
<DIV> </DIV>
<DIV>I use this code for a current layer in the map:</DIV>
<DIV> </DIV>
<DIV>$oMap = $this->moMapObject->oMap;<BR>$oLayer = $oMap->getLayerByName("Municipios");<BR>if ($oLayer->status == MS_OFF || $oLayer->status == MS_DEFAULT)<BR> {$oLayer->set("status", MS_ON);}</DIV>
<DIV> </DIV>
<DIV>But the layer Municipios still is off (th layer doen't show). </DIV>
<DIV> </DIV>
<DIV>By other side i do a copy of the layer Municipios y that work fine, i mean the new layer apper and is on:</DIV>
<DIV> </DIV>
<DIV>$oHighlight = ms_newLayerObj($oMap, $oLayer); </DIV>
<DIV>$oHighlight->set("name", $oLayer->"Municipios_copy");<BR>$oHighlight->set("status", MS_ON);</DIV>
<DIV> </DIV>
<DIV>I need to send another command to refresh in the case the layer already exist?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV> </DIV>
<DIV>Alexys H</DIV>
<DIV> </DIV></div><br>
<hr size=1><br><font face="Verdana" size="-2">¿Con Mascota por primera vez? - Sé un mejor Amigo<br><a href="http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=XXXXXXXX">Entra en Yahoo! Respuestas</a>.<br></font> </body></html>