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