Custom Layer Legends

The legend for a layer can be customized to match your custom style, (or the style of your website).

Legends use standard HTML notation. Quick Intro to HTMLarrow-up-right

Default Legend Code

Here is an example of the default legend for a point layer colored red:

div class="omh-legend">
 <div class="point" style="background-color: red">
 </div>
 <h3>{NAME}</h3>
 </div>

Graduated Circles Example #1

In this example we are using the grid design from http://materializecss.com/grid.html arrow-up-rightwhich is the UI design library used by MapHubs and is automatically available.

Graduated Circles Example #2

Last updated