Hi Tony,
Unfortunately, QGIS server does not yet expose these categories/rules as
sub layers. The lowest element in the hierarchy is the layer. So there
is no way that QGIS web client could expose these.
I would also like to see this functionality, as I think it is quite
useful for some use cases. But we would have to enhance both QGIS server
and QGIS web client to make this work.
Would you be willing to work on this or help fund this functionality?
Andreas
On 31.08.2015 21:28, Tony Pham wrote:
Within the QGIS Web Client, how does one enable the sublayers of Map
Layers to be exposed?
On my QGIS application, I have created a QGIS project file comprised
of a chloropleth map (or a graduated map or a thematic map) which
shows each map object in a different color based on a specific value
of the map object. In the QGIS application, I am able to check and
uncheck these "sublayers" that have been created.
When I view the QGIS project file on the QGIS Web Client, I can view
the chloropleth map fine as-is. However, I do not have the ability to
check or uncheck the sublayers of the map layer in question on the
browser client unlike the QGIS application directly where I may check
or uncheck each sublayer or symbol color.
A example is described below. For the following New Zealand map of
cities generated and displayed using QGIS, each circle has a color
associated with it based on the population of the city. The larger the
population, the darker the color of the circle. The QGIS project as
generated in the QGIS application shows each sublayer's category on
the left pane. See first link below. When I attempt to post this QGIS
project on the QGIS Web Client as shown in the second image, I do not
see each sublayer identified on the Map Layers pane on the left. See
second link below.
http://i.stack.imgur.com/qg1gD.png
http://i.stack.imgur.com/qA54T.png
image <http://i.stack.imgur.com/qA54T.png>
<http://i.stack.imgur.com/qA54T.png>
View on i.stack.imgur.com <http://i.stack.imgur.com/qA54T.png>
Preview by Yahoo
image <http://i.stack.imgur.com/qg1gD.png>
<http://i.stack.imgur.com/qg1gD.png>
View on i.stack.imgur.com <http://i.stack.imgur.com/qg1gD.png>
Preview by Yahoo
I am interested in viewing these sublayers in my "legend" on the
browser because the sublayers provide information as to how the
chloropleth map is broken down by color. Additionally, I would like to
be able to check and/or uncheck each sublayer (or symbol
color/category) independently in the QGIS Web Client, similar to how I
may do so in the QGIS application.
Within QGIS-Web-Client, are there settings in the javascript files
that I must modify to enable the exposing of these sublayers of my map
layers?
Any help would be appreciated! -tph018nwu
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user