<div dir="ltr">Hi all,<div><br></div><div>I am new to OpenLayers (so forgive me in advance). </div><div><br></div><div>I have a polygon layer in GeoServer (from a shapefile) consisting of 487 features and 15 statistical attributes of socio-economic variables.</div>
<div>What I want to accomplish is to visualize these 15 variables in a web map service, where the user can select the variable he/she wants to visualize and that the color fill represents low to high on the selected variable (white to dark grey i.e.).</div>
<div><br></div><div>So far I have managed to set up an OpenLayers page that reads the GeoServer layer, and outputs the attribute table below the map when I click one of the features.</div><div><br></div><div>However, I am still lost as to how I should proceed to create the visualization.</div>
<div>One example of an end-result could look similar to this: <a href="http://sedac.ciesin.columbia.edu/maps/client">http://sedac.ciesin.columbia.edu/maps/client</a></div><div><br></div><div>So my question is. What styling code am I looking for, and could this type of solution be created out of the one layer, or do I need one layer for each attribute?</div>
<div>And if I need to create a rule based class interval, do I have to do this manually for each class, for each attribute?</div><div><br></div><div>Any example code that points to the suggested direction would be great!</div>
<div><br></div><div>thanks!</div><div><br></div><div>Best,</div><div>Andreas</div><div><br></div></div>