<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<p style="margin: 0px 0px 1.1em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; text-align: left; color: rgb(35, 38, 41); background-color: rgb(249, 248, 246);" class="ContentPasted0">
I am serving rasters through mapserver and the maps look fine. I have managed to include a raser legend by setting:</p>
<pre style="margin:0px 0px calc(1.5em);width:auto;max-height:600px;overflow:auto;text-align:left"><code style="margin:0px;border-radius:0px" class="ContentPasted0"> LEGEND
    KEYSIZE 200 12
    LABEL
      TYPE BITMAP
      SIZE MEDIUM
      COLOR 0 0 89
    END
    STATUS EMBED
  END
</code></pre>
<p style="margin: 0px 0px 1.1em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; text-align: left; color: rgb(35, 38, 41); background-color: rgb(249, 248, 246);" class="ContentPasted0">
My 'Class' inside my 'Layer' looks like:</p>
<pre style="margin:0px 0px calc(1.5em);width:auto;max-height:600px;overflow:auto;text-align:left"><code style="margin:0px;border-radius:0px" class="ContentPasted0">CLASS
        NAME "my_legend_name"
        STYLE
            RANGEITEM "Band 1"
            COLORRANGE 255 255 178  189 0 38
            DATARANGE 1700 2000
        END
      END
</code></pre>
<p style="margin: 0px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; text-align: left; color: rgb(35, 38, 41); background-color: rgb(249, 248, 246);" class="ContentPasted0">
This gives me a nice legend. However, it is missing ticks and values. So, there are no clues to what values the different colors represent. How can ticks be added to the embed legend? Is it even possible? I have also called the legend with GetLegendGraphic
 through openlayers wmsSource.getLegendUrl but without finding a way to set ticks. I would think this would be possible?</p>
<p style="margin: 0px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; text-align: left; color: rgb(35, 38, 41); background-color: rgb(249, 248, 246);" class="ContentPasted0">
<br>
</p>
<p style="margin: 0px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; text-align: left; color: rgb(35, 38, 41); background-color: rgb(249, 248, 246);" class="ContentPasted0">
<br>
</p>
<p style="margin: 0px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; text-align: left; color: rgb(35, 38, 41); background-color: rgb(249, 248, 246);" class="ContentPasted0">
Best regards,</p>
<p style="margin: 0px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; text-align: left; color: rgb(35, 38, 41); background-color: rgb(249, 248, 246);" class="ContentPasted0">
<br>
</p>
<p style="margin: 0px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; clear: both; text-align: left; color: rgb(35, 38, 41); background-color: rgb(249, 248, 246);" class="ContentPasted0">
Martin Album Ytre-Eide</p>
<br>
</div>
</body>
</html>