Merge branch '6-client-no-protection-against-false-color' into 'master'

avoid false color

Closes #6

See merge request sgay/traque!7
This commit is contained in:
Lubin Bailly 2022-09-13 11:24:55 +02:00
commit 8ac3b1e3f7

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