avoid false color

This commit is contained in:
catvayor 2022-09-13 11:20:27 +02:00
parent 22382c00dd
commit 487cc3f41a

View file

@ -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">
@ -79,6 +79,9 @@
maxZoom: 19,
attribution: '© OpenStreetMap'
}).addTo(map);
document.getElementById('color').max = icons.length - 1;
console.log(document.getElementById('color').max);
//////////////////////////////////////////////////////////////////////////////
// UPDATE MAP