You can do that using mapfile variables and setting you layer metadata to tile_source "nocache". So, when you click on a link, you send the parameter to your mapfile and refresh your layer.<br><br>To specify values for variable replacement on the client side, add a
replacementVariables object to your JavaScript _layer object (e.g.
myLayer.replacementVariables = {key1: 'value1', key2: 'value2'}).
Variable replacement currently works for layer->data,
layer->connection, layer->filter, and for class->expression.<br><br>You can see how it works here: <a href="http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub">http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub
</a><br><br><div><span class="gmail_quote">
On 11/23/06, <b class="gmail_sendername">Damiano Morosi</b> <<a href="mailto:damiano.morosi@atac.roma.it" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">damiano.morosi@atac.roma.it</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I would like to change the layer in my kaMap by clicking on a link or<br>selecting a voice in a combobox.<br>Is there some javascript API to do such thing without too much reverse<br>engineering of ka-map?<br>
Thanks,
<br><br>Damiano<br>_______________________________________________<br>ka-Map-users mailing list<br><a href="mailto:ka-Map-users@lists.maptools.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ka-Map-users@lists.maptools.org
</a><br><a href="http://lists.maptools.org/mailman/listinfo/ka-map-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br></blockquote></div><br>