[OpenLayers-Users] Combo Box for layers

Todd Fagin tfagin at coordinatesolutions.com
Thu May 22 12:41:15 PDT 2014


Greetings OpenLayer users,

 

I have what I assume is a fairly simple question, one that has likely been
addressed previously. However, I have been unable to find the solution
online. To add insult to injury, I am not a programmer. I can look at
existing code and often modify it to my needs, but if I start with a blank
slate, I usually end with a blank slate.

 

So, here is my problem in a nutshell:

 

I have a simple OpenLayers application that displays WMS layers from
GeoServer plus several base layers (Google, Bing, etc.). Currently, it is
configured with the standard LayerSwitcher. However, I would like to have a
combo box from which users can select the overlay to display. It would be
nice to have a default overlay set, then users could select from the
dropdown list which overlay to display (for my purpose at hand, it is not
necessary to display more than one overlay at a time-at least the overlays I
wish to include in the combo box).

 

Surely (I assume), this is something many individuals have done before.

 

Keep in mind what I said above: I am not a programmer. So, if someone has
some sample code I could cannibalize, I will be forever in your debt (well,
maybe not forever, but.)

 

Many thanks in advance,

 

Todd 

 

Todd Fagin

 

Coordinate Solutions, Inc.

2804 NW 18th St.

Oklahoma City, OK 73107

405.740.4324

www.coordinatesolutions.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20140522/d9d3b370/attachment.html>


More information about the Users mailing list