| | |
| | | } |
| | | } |
| | | |
| | | TLineInfoDlg.clearDestinationFence = function () { |
| | | TLineInfoDlg.clearDestinationFence = function (keepValue) { |
| | | if (TLineInfoDlg.destinationFenceOverlay) { |
| | | TLineInfoDlg.destinationMap.remove(TLineInfoDlg.destinationFenceOverlay); |
| | | TLineInfoDlg.destinationFenceOverlay = null; |
| | |
| | | TLineInfoDlg.destinationMap.remove(TLineInfoDlg.destinationDefaultPointMarker); |
| | | TLineInfoDlg.destinationDefaultPointMarker = null; |
| | | } |
| | | $("#destinationCoordinate").val(""); |
| | | $("#destinationDefaultPointLon").val(""); |
| | | $("#destinationDefaultPointLat").val(""); |
| | | if (!keepValue) { |
| | | $("#destinationCoordinate").val(""); |
| | | $("#destinationDefaultPointLon").val(""); |
| | | $("#destinationDefaultPointLat").val(""); |
| | | } |
| | | $("#destinationDefaultPointText").text(""); |
| | | } |
| | | |
| | |
| | | |
| | | TLineInfoDlg.restoreDestinationMapFence = function () { |
| | | TLineInfoDlg.initDestinationMap(); |
| | | TLineInfoDlg.clearDestinationFence(); |
| | | TLineInfoDlg.clearDestinationFence(true); |
| | | var fenceType = $("input[name='destinationFenceType']:checked").val(); |
| | | var coordinate = $("#destinationCoordinate").val(); |
| | | if (!coordinate) { |