Time for Action – styling the LayerSwitcher control
Let's take a look now at how to style the LayerSwitcher control. Unlike the previous example, we'll place this control in a div element outside the map.
- Start a new page. We'll link to an external CSS file that will override the base LayerSwitcher control style, like in the previous example. Include a
<link> tag that references a file called ex3_layerswitcher_style.css, which we'll create soon.
- Next, we'll need to create a div element that will house our control. Create a div tag after the
layer_switcher_control element ...