[Cartoweb-users] children switching

Oliver Christen oliver.christen at camptocamp.com
Thu Jun 5 02:36:14 EDT 2008


do you have {$switches} in your cartclient.tpl and did you cleaned smarty 
cache ?

also try to define a default switch:
layers.test.children.default = INJURY
so at least on switch get selected

regards
Oliver

> any thoughts on why the following is not working ?
>
> i do not get a dropdown menu with the following options:
> Injury Data layers
> Census Data layers
>
> only a checkbox with 'test'  within a block also labelled test
>
> any help much much appreciated
> -------------------
>
> legendResolutions = 96, 150, 300
>
> ; whether to generate class icons automatically
> autoClassLegend = true
>
> ;layers
> layers.root.className = LayerGroup
> layers.root.children = test, queryable, background
>
> layers.root.rendering = block
>
> layers.test.className = LayerGroup
> layers.test.children.switch1 = INJURY
> layers.test.children.switch2 = CENSUS
>
>
> ;switches
> switches.switch1.label = Injury Data layers
> switches.switch2.label = Census Data layers
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> layers.INJURY.className = LayerGroup
> layers.INJURY.label = INJURY RATES BY CENSUS TRACTS
> ;layers.INJURY.rendering = dropdown
> layers.INJURY.children = FALLS, MVT,
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> layers.FALLS.className = Layer
> layers.FALLS.label =  TYPE Falls - Rate per 100,000
> layers.FALLS.msLayer = FALLS
> layers.FALLS.icon = /icons/falls.gif
> ;layers.FALLS.rendering = radio
> layers.FALLS.link = 
> http://tundra.geog.utoronto.ca/GeoConnections/data_injury_falls.htm
>
>
> layers.MVT.className = Layer
> layers.MVT.label =   TYPE M. Vehicle or Traffic - Rate per 100,000
> layers.MVT.msLayer = MVT
> layers.MVT.icon = /icons/mvt.gif
> ;layers.MVT.rendering = radio
> layers.MVT.link = 
> http://tundra.geog.utoronto.ca/GeoConnections/data_injury_mvehicletraffic.htm
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> layers.CENSUS.className = LayerGroup
> layers.CENSUS.label = CENSUS DATA BY CENSUS TRACTS
> ;layers.CENSUS.rendering = dropdown
> layers.CENSUS.children = POPULATION, AGE_15,
> ;;;;;;;;;;;;;;;;
>
> layers.POPULATION.className = Layer
> layers.POPULATION.label = Population Density - per sq km
> layers.POPULATION.msLayer = Population Density MOD
> layers.POPULATION.icon = /icons/POPULATION.gif
> layers.POPULATION.link = 
> http://tundra.geog.utoronto.ca/GeoConnections/data_census_populationdensity.htm
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> layers.AGE_15.className = Layer
> layers.AGE_15.label = Age % < 15
> layers.AGE_15.msLayer = AGE <15 - MOD
> layers.AGE_15.icon = /icons/AGE_15.gif
> layers.AGE_15.link = 
> http://tundra.geog.utoronto.ca/GeoConnections/data_census_age.htm
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> layers.queryable.className = LayerGroup
> layers.queryable.label = Queryable Layers ;layers.queryable.rendering = 
> tree
> layers.queryable.children = Golden_Horseshoe_Hospitals, 
> Toronto_Neighbourhoods
>
>
> ;;;;;;;;;;;;;;;;;;;;;;;
> layers.Golden_Horseshoe_Hospitals.className = Layer
> layers.Golden_Horseshoe_Hospitals.label =  Golden Horseshoe Hospitals
> layers.Golden_Horseshoe_Hospitals.msLayer = Golden Horseshoe Hospitals
> layers.Golden_Horseshoe_Hospitals.icon = /icons/hospitals.gif
> layers.Golden_Horseshoe_Hospitals.link = 
> http://tundra.geog.utoronto.ca/GeoConnections/data_bg_golden_horseshoe_hospitals.htm
>
>
> layers.Toronto_Neighbourhoods.className = Layer
> layers.Toronto_Neighbourhoods.msLayer = Toronto_neighborhoods_Proj
> layers.Toronto_Neighbourhoods.label = Toronto Neighbourhoods
> layers.Toronto_Neighbourhoods.icon = /icons/Toronto_Neighbourhoods.gif
> layers.Toronto_Neighbourhoods.link = 
> http://tundra.geog.utoronto.ca/GeoConnections/data_bg_toronto_neighbourhoods.htm
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> layers.background.className = LayerGroup
> layers.background.label = Background Layers
> ;layers.background.rendering = tree
> layers.background.children = ON, GREY, SUPRESSED, WATER, roads, 
> WMSminorROADS
>
>
> ;;;;;;;;;;;;;;;;;;;;;;;
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> layers.GREY.className = Layer
> layers.GREY.msLayer = GREY_GH
> layers.GREY.label = GREY_GH
>
> layers.SUPRESSED.className = Layer
> layers.SUPRESSED.msLayer = Supressed
> layers.SUPRESSED.label = Supressed
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> layers.ON.className = Layer
> layers.ON.msLayer = ON_Base
> layers.ON.label = ON_Base
>
> layers.WATER.className = Layer
> layers.WATER.msLayer = ON_Water
> layers.WATER.label = ON_Water
> layers.roads.className = Layer
> layers.roads.label =  Major roads
> layers.roads.msLayer = ontroadl_Proj
> layers.roads.icon = /icons/Major_roads.gif
> layers.roads.link = 
> http://tundra.geog.utoronto.ca/GeoConnections/data_bg_major_roads.htm
>
> layers.WMSminorROADS.className = Layer
> layers.WMSminorROADS.label =  Minor Roads WMS
> layers.WMSminorROADS.msLayer = WMSminorROADS
> layers.WMSminorROADS.icon = /icons/Minor_roads_WMS.gif
> layers.WMSminorROADS.link = 
> http://tundra.geog.utoronto.ca/GeoConnections/data_bg_minor_roads_wms.htm
>
>
>
>
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
> 



More information about the Cartoweb-users mailing list