[ka-Map-users] control class visibility
Paul Spencer
pspencer at dmsolutions.ca
Wed Jun 7 07:36:45 EDT 2006
Donal,
it is theoretically possible since this is supported in mapscript,
but it is not currently supported in ka-Map. To achieve your desired
effect, you would need a layer for each class. In fact, in the
current set up, you would need a group for each layer as well, since
visibility is controlled at the group level.
There is an alternative which is to use uncached tiles. Tim Schaub
added the capability to to use uncached tiles and to pass variables
to the tile script which would then be inserted into the map file.
It is possible that you could use this to control visibility of your
classes by dynamically modifying the sql of your postgis layer
source. This is documented in the kaMap wiki (http://ka-
map.ominiverdi.org/wiki/index.php/Setting_metadata_in_the_mapfile)
Finally you could write your own tile.php script to replace the
existing one.
Cheers
Paul
On 7-Jun-06, at 7:28 AM, Donal Regan wrote:
> Hi,
>
> Is it possible to turn individual classes within a layer on and
> off, or do I have to create a separate layer for each class in
> order to control its visibility?
> What I'd like to do is query postgis which will return a layer with
> about 10 classes and then use checkboxes on the client to toggle
> the classes on and off.
>
> Cheers,
>
> D.
> Send instant messages to your online friends http://
> uk.messenger.yahoo.com
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the ka-Map-users
mailing list