[OpenLayers-Users] Too many layers?

Arnd Wippermann arnd.wippermann at web.de
Sun Sep 21 10:15:38 PDT 2014


Hi,
 
perhaps these three examples may be helpful.
 
In the first and the second example I use a LayerSwitcher, 
where the user can choose the layers of an OpenLayers.Layer.WMS for display.
 
The third example shows the use of SLD to color a layer for different
attributes.
 
[1]:http://gis.ibbeck.de/ginfo/apps/OLExamples/OL27/examples/GroundOverlay/G
roundOverlay.asp
[2]:http://gis.ibbeck.de/OLClient/OLClient.asp?WMC=data/WMC/!World.wmc.xml
 
[3]:http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/Map
Server_SLD_World.asp

Regards,
Arnd

  _____  

Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Andreas
Forø Tollefsen
Gesendet: Freitag, 19. September 2014 20:02
An: Mark Prins
Cc: openlayers-users
Betreff: Re: [OpenLayers-Users] Too many layers?


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. 
In fact, my data is all from just two shapefiles representing two different
administrative units, with many variables for each layer. 
This should basically only require me to have two layers in the map. One for
each administrative level.

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. 

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.

My solution to reduce the load is to have a custom LayerSwitcher, where only
one layer can be shown as overlay at the time.

Andreas


2014-09-19 15:51 GMT+02:00 Mark Prins <mc.prins at gmail.com>:


in this specific case I think you should really (re)think your user
interaction design. Think about:
- Do you really want a user to be able to switch on all these layers
at the same time?
- Does the map still make sense if there are more than 3 layers
selected (especially if they overlap)?
- Is there any way to reduce the options by combining several areas
into one layer?

We came up with a megamenu structure (basically a list selector) for
mapping a few hundred statistical units in our project
see:
https://github.com/MinELenI/CBSviewer/blob/master/src/main/webapp/WEB-INF/js
p/main_menu_theme_include.jsp



2014-09-18 7:51 GMT+02:00 Andreas Forø Tollefsen <andreasft at gmail.com>:
> Hi,
>
> I am working on a thematic mapping platform showing data at local
> administrative levels.
> I have many layers, so I run into problems (see screenshot:
> http://gisintersect.com/many_layers.png).
>
> Is there any way I can collapse groups of layers within the layer
switcher?
> I have a high number of layers, as you can see in the switcher. Hence, I
> need some way to collapse/group/categorize the layers, so that I do not
need
> to show all of them in the layerswitcher at once.
> The result is that layers drop outside the map, so either, there is a
> maximum number of layers, or there should be a better way to do it.
>
> Andreas
>

> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



--
Disclaimer;
This message is just a reflection of what I thought at the time of
sending. The message may contain information that is not intended for
you or that you don't understand.

_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users




---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
http://www.avast.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20140921/eaacbd69/attachment.html>


More information about the Users mailing list