[ka-Map-users] Changing the mapfile
Pje
pjebra at gmail.com
Mon Nov 6 11:03:25 EST 2006
Hi,
I need to change the data of a layer based on a parameter. So, I'm
generating the mapfile dinamically and setting it by
mySetMap('mapfile_tmp'). The problem is if i change the data and set the
mapfile with the same name, the layer didn't change.
Example:
MapfileA
map
layer
connectiontype POSTGIS
data "the_geom from table"
...
end
end
Then i change the mapfile to:
map
layer
connectiontype POSTGIS
data "the_geom from table where column = 'foo' "
...
end
end
And I set the mapfile mySetMap('MapfileA').
What I'm doing wrong?
What i need to do is to change the data of a layer when an user make a
search.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20061106/e18e171f/attachment.html
More information about the ka-Map-users
mailing list