Skip to content

Commit

Permalink
demonstrate how to round layer switcher corners with border-radius
Browse files Browse the repository at this point in the history
  • Loading branch information
elemoine committed Dec 8, 2011
1 parent 513dd16 commit 4f66373
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/controls.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@

<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">

<style>
/* round corners of layer switcher, and make it transparent */
.olControlLayerSwitcher .layersDiv {
border-radius: 10px 0 0 10px;
opacity: 0.75;
filter: alpha(opacity=75);
}
</style>

<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map;
Expand Down

0 comments on commit 4f66373

Please sign in to comment.