<HTML>
<style> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }</style>Hi All,<br>
<br>
I have a map with several layergroups, and want to make a copy of a user-picked layer in a group by doing an ajax call to a PHP Mapscript. This script executes $oMap-&gt;insertLayer($oLayer). This works perfectly in the PHP Mapscript environment ($oMap-&gt;getAllLayerNames() shows all layers including the copy). But when the ajax call returns, the layer has not been added to the map. Any ideas why this is? <br>
<br>
Cheers,<br>
Tom<br>
 </HTML>