Support expressions for band arguments
This commit is contained in:
44
examples/cog-stretch.html
Normal file
44
examples/cog-stretch.html
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
layout: example.html
|
||||
title: Band Constrast Stretch
|
||||
shortdesc: Choosing bands and applying constrast stretch
|
||||
docs: >
|
||||
This example uses the `layer.updateStyleVariables()` method to update the rendering
|
||||
of a GeoTIFF based on user selected bands and contrast stretch parameters.
|
||||
tags: "cog, webgl, style"
|
||||
---
|
||||
<div id="map" class="map"></div>
|
||||
<div class="controls">
|
||||
<label for="red">Red channel</label>
|
||||
<select id="red">
|
||||
<option value="1" selected>visible red</option>
|
||||
<option value="2">visible green</option>
|
||||
<option value="3">visible blue</option>
|
||||
<option value="4">near infrared</option>
|
||||
</select>
|
||||
<label>max
|
||||
<input type="range" id="redMax" value="3000" min="2000" max="5000">
|
||||
</label>
|
||||
|
||||
<label for="green">Green channel</label>
|
||||
<select id="green">
|
||||
<option value="1">visible red</option>
|
||||
<option value="2" selected>visible green</option>
|
||||
<option value="3">visible blue</option>
|
||||
<option value="4">near infrared</option>
|
||||
</select>
|
||||
<label>max
|
||||
<input type="range" id="greenMax" value="3000" min="2000" max="5000">
|
||||
</label>
|
||||
|
||||
<label for="blue">Blue channel</label>
|
||||
<select id="blue">
|
||||
<option value="1">visible red</option>
|
||||
<option value="2">visible green</option>
|
||||
<option value="3" selected>visible blue</option>
|
||||
<option value="4">near infrared</option>
|
||||
</select>
|
||||
<label>max
|
||||
<input type="range" id="blueMax" value="3000" min="2000" max="5000">
|
||||
</label>
|
||||
</div>
|
||||
Reference in New Issue
Block a user