[ka-Map-users] Changing map layer dinamically
Pje
pjebra at gmail.com
Thu Nov 23 12:37:32 EST 2006
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.
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.
You can see how it works here:
http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub
On 11/23/06, Damiano Morosi <damiano.morosi at atac.roma.it> wrote:
>
> Hi,
>
> I would like to change the layer in my kaMap by clicking on a link or
> selecting a voice in a combobox.
> Is there some javascript API to do such thing without too much reverse
> engineering of ka-map?
> Thanks,
>
> Damiano
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20061123/2304e0a7/attachment.html
More information about the ka-Map-users
mailing list