[mapserver-commits] r8917 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Wed Apr 15 14:40:59 EDT 2009
Author: dmorissette
Date: 2009-04-15 14:40:58 -0400 (Wed, 15 Apr 2009)
New Revision: 8917
Modified:
trunk/mapserver/maptemplate.c
Log:
Added layer_queryable variable for use in HTML legend template [if] tags (#2980)
Modified: trunk/mapserver/maptemplate.c
===================================================================
--- trunk/mapserver/maptemplate.c 2009-04-15 14:12:50 UTC (rev 8916)
+++ trunk/mapserver/maptemplate.c 2009-04-15 18:40:58 UTC (rev 8917)
@@ -2014,6 +2014,7 @@
sprintf(pszStatus, "%d", GET_LAYER(map, map->layerorder[j])->status);
msInsertHashTable(myHashTable, "layer_status", pszStatus);
msInsertHashTable(myHashTable, "layer_visible", msLayerIsVisible(map, GET_LAYER(map, map->layerorder[j]))?"1":"0" );
+ msInsertHashTable(myHashTable, "layer_queryable", msIsLayerQueryable(GET_LAYER(map, map->layerorder[j]))?"1":"0" );
msInsertHashTable(myHashTable, "group_name", pszGroupName);
if(processIfTag(pszTemp, myHashTable, MS_FALSE) != MS_SUCCESS)
@@ -2165,6 +2166,7 @@
msInsertHashTable(myHashTable, "layer_name", (GET_LAYER(map, nIdxLayer)->name)? GET_LAYER(map, nIdxLayer)->name : "");
msInsertHashTable(myHashTable, "layer_group", (GET_LAYER(map, nIdxLayer)->group)? GET_LAYER(map, nIdxLayer)->group : "");
msInsertHashTable(myHashTable, "layer_visible", msLayerIsVisible(map, GET_LAYER(map, nIdxLayer))?"1":"0" );
+ msInsertHashTable(myHashTable, "layer_queryable", msIsLayerQueryable(GET_LAYER(map, nIdxLayer))?"1":"0" );
if(processIfTag(pszTemp, myHashTable, MS_FALSE) != MS_SUCCESS)
return MS_FAILURE;
@@ -2312,6 +2314,7 @@
msInsertHashTable(myHashTable, "layer_group",
(GET_LAYER(map, nIdxLayer)->group)? GET_LAYER(map, nIdxLayer)->group : "");
msInsertHashTable(myHashTable, "layer_visible", msLayerIsVisible(map, GET_LAYER(map, nIdxLayer))?"1":"0" );
+ msInsertHashTable(myHashTable, "layer_queryable", msIsLayerQueryable(GET_LAYER(map, nIdxLayer))?"1":"0" );
msInsertHashTable(myHashTable, "class_name",
(GET_LAYER(map, nIdxLayer)->class[nIdxClass]->name)? GET_LAYER(map, nIdxLayer)->class[nIdxClass]->name : "");
More information about the mapserver-commits
mailing list