<div dir="ltr">Thanks for all your input. Really, this seems to be an issue with how we can use OpenLayers to visualize a number of variables from the same layer.<div>In fact, my data is all from just two shapefiles representing two different administrative units, with many variables for each layer. </div><div>This should basically only require me to have two layers in the map. One for each administrative level.</div><div><br></div><div>What I would like to have is just a simple "variable selector" for each of the layer, where the user can select the variable in each of the layers that should be symbolized, where each variable has a predefined SLD style. However, I have not seen an example showing this, or seen code examples. </div><div><br></div><div>Is this possible in Openlayers without too much custom coding? It seems to me sometimes that Openlayers is not always easy to use to create thematic maps.</div><div><br></div><div>My solution to reduce the load is to have a custom LayerSwitcher, where only one layer can be shown as overlay at the time.</div><div><br></div><div>Andreas</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-19 15:51 GMT+02:00 Mark Prins <span dir="ltr"><<a href="mailto:mc.prins@gmail.com" target="_blank">mc.prins@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">in this specific case I think you should really (re)think your user<br>
interaction design. Think about:<br>
- Do you really want a user to be able to switch on all these layers<br>
at the same time?<br>
- Does the map still make sense if there are more than 3 layers<br>
selected (especially if they overlap)?<br>
- Is there any way to reduce the options by combining several areas<br>
into one layer?<br>
<br>
We came up with a megamenu structure (basically a list selector) for<br>
mapping a few hundred statistical units in our project<br>
see: <a href="https://github.com/MinELenI/CBSviewer/blob/master/src/main/webapp/WEB-INF/jsp/main_menu_theme_include.jsp" target="_blank">https://github.com/MinELenI/CBSviewer/blob/master/src/main/webapp/WEB-INF/jsp/main_menu_theme_include.jsp</a><br>
<div class="HOEnZb"><div class="h5"><br>
<br>
2014-09-18 7:51 GMT+02:00 Andreas Forø Tollefsen <<a href="mailto:andreasft@gmail.com">andreasft@gmail.com</a>>:<br>
> Hi,<br>
><br>
> I am working on a thematic mapping platform showing data at local<br>
> administrative levels.<br>
> I have many layers, so I run into problems (see screenshot:<br>
> <a href="http://gisintersect.com/many_layers.png" target="_blank">http://gisintersect.com/many_layers.png</a>).<br>
><br>
> Is there any way I can collapse groups of layers within the layer switcher?<br>
> I have a high number of layers, as you can see in the switcher. Hence, I<br>
> need some way to collapse/group/categorize the layers, so that I do not need<br>
> to show all of them in the layerswitcher at once.<br>
> The result is that layers drop outside the map, so either, there is a<br>
> maximum number of layers, or there should be a better way to do it.<br>
><br>
> Andreas<br>
><br>
</div></div><span class="im HOEnZb">> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br>
<br>
<br>
</span><span class="HOEnZb"><font color="#888888">--<br>
Disclaimer;<br>
This message is just a reflection of what I thought at the time of<br>
sending. The message may contain information that is not intended for<br>
you or that you don't understand.<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></div></div></blockquote></div><br></div>