[OpenLayers-Users] Too many layers?

Andreas Forø Tollefsen andreasft at gmail.com
Fri Sep 19 11:01:55 PDT 2014


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/jsp/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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20140919/aa833bec/attachment.html>


More information about the Users mailing list