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:
commit
8ac3b1e3f7
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
||||||
<div id="map"></div><br/>
|
<div id="map"></div><br/>
|
||||||
|
|
||||||
<input id="name"/><button id="setName">Set team name</button><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">
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
@ -80,6 +80,8 @@
|
||||||
attribution: '© OpenStreetMap'
|
attribution: '© OpenStreetMap'
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
|
document.getElementById('color').max = icons.length - 1;
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
// UPDATE MAP
|
// UPDATE MAP
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue