avoid false color
This commit is contained in:
parent
22382c00dd
commit
487cc3f41a
1 changed files with 4 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
|||
<div id="map"></div><br/>
|
||||
|
||||
<input id="name"/><button id="setName">Set team name</button><br/>
|
||||
<input type="number" id="color" value="0"/><button id="setColor">Set color</button><br/>
|
||||
<input type="number" id="color" min="-1" value="0"/><button id="setColor">Set color</button><br/>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
|
@ -80,6 +80,9 @@
|
|||
attribution: '© OpenStreetMap'
|
||||
}).addTo(map);
|
||||
|
||||
document.getElementById('color').max = icons.length - 1;
|
||||
console.log(document.getElementById('color').max);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// UPDATE MAP
|
||||
|
||||
|
|
Loading…
Reference in a new issue