adding swap button
This commit is contained in:
parent
7951bd0477
commit
fa0f848c35
@ -70,6 +70,7 @@
|
|||||||
<select id="pointb" name="Point_B">
|
<select id="pointb" name="Point_B">
|
||||||
<!-- Options will generated in code -->
|
<!-- Options will generated in code -->
|
||||||
</select>
|
</select>
|
||||||
|
<button id="swapab" class="btn">Swap</button>
|
||||||
<br /> <br />
|
<br /> <br />
|
||||||
<label for="speed">Travel Speed</label> <br />
|
<label for="speed">Travel Speed</label> <br />
|
||||||
<input type="text" id="speed" value="14"> <br />
|
<input type="text" id="speed" value="14"> <br />
|
||||||
|
@ -39,6 +39,14 @@ $(document).ready(function() {
|
|||||||
var stop=$('#route_output :selected').parent().attr('label');
|
var stop=$('#route_output :selected').parent().attr('label');
|
||||||
zoomfocus(stop);
|
zoomfocus(stop);
|
||||||
});
|
});
|
||||||
|
$('#swapab').click(function() {
|
||||||
|
var pa = "pointa";
|
||||||
|
var pb = "pointb";
|
||||||
|
$("#pointa").remove();
|
||||||
|
$("#pointb").remove();
|
||||||
|
$("#pointa").val(pb);
|
||||||
|
$("#pointb").val(pa);
|
||||||
|
});
|
||||||
$('#calctnd').click(function() {
|
$('#calctnd').click(function() {
|
||||||
|
|
||||||
removeEntity('arrow');
|
removeEntity('arrow');
|
||||||
|
Loading…
Reference in New Issue
Block a user