Hello,<br><br>is it possible to change the layers that are activated by default directly in code instead of having to change the layers.ini file?<br><br>I have several dozen layers of which only two will be active at any given time. Deciding which two layers will be displayed is going to be decided by an algorithm written in php, not by the user. At every page refresh, the algorithm, based on several parameters, will set just two layers to selected.
<br>Is there a way to do this within Cartoweb in php?<br><br>The only ugly solution I have thought of so far is to overwrite the layers.ini file with a new one and having the pertinent layers marked as selected. However, aside being ugly, this runs into problems with caching.
<br><br>Any help would be appreciated.<br><br>Thanks<br clear="all"><br>-- <br>Alessandro Muzzetta<br>IES Solutions Srl<br>Catania Office<br>Via Vulcano 10 - I-95030 Gravina di Catania, Italy<br>Email: <a href="mailto:a.muzzetta@i4es.it">
a.muzzetta@i4es.it</a><br>Phone/Fax: +39 095211640<br>Skype: alex-tecnia