|  | @@ -531,3 +531,138 @@ var shower_click = function() {
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  var left_mouseover = function() {
 | 
	
		
			
				|  |  | +    $("#map_btn_left").removeClass('map_btn_left_off');
 | 
	
		
			
				|  |  | +    $("#map_btn_left").addClass('map_btn_left_on');
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +var left_mouseout = function() {
 | 
	
		
			
				|  |  | +    $("#map_btn_left").removeClass('map_btn_left_on');
 | 
	
		
			
				|  |  | +    $("#map_btn_left").addClass('map_btn_left_off');
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +var left_click = function() {
 | 
	
		
			
				|  |  | +    rotation = map.getRotation();
 | 
	
		
			
				|  |  | +    rotation -= 5;
 | 
	
		
			
				|  |  | +    if (rotation < 0)
 | 
	
		
			
				|  |  | +        rotation = 360 + rotation;
 | 
	
		
			
				|  |  | +    map.setRotation(rotation);
 | 
	
		
			
				|  |  | +    draw_all();
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +var right_mouseover = function() {
 | 
	
		
			
				|  |  | +    $("#map_btn_right").removeClass('map_btn_right_off');
 | 
	
		
			
				|  |  | +    $("#map_btn_right").addClass('map_btn_right_on');
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +var right_mouseout = function() {
 | 
	
		
			
				|  |  | +    $("#map_btn_right").removeClass('map_btn_right_on');
 | 
	
		
			
				|  |  | +    $("#map_btn_right").addClass('map_btn_right_off');
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +var right_click = function() {
 | 
	
		
			
				|  |  | +    rotation = map.getRotation();
 | 
	
		
			
				|  |  | +    rotation += 5;
 | 
	
		
			
				|  |  | +    if (rotation > 360)
 | 
	
		
			
				|  |  | +        rotation = rotation - 360;
 | 
	
		
			
				|  |  | +    map.setRotation(rotation);
 | 
	
		
			
				|  |  | +    draw_all();
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +var higher_mouseover = function() {
 | 
	
		
			
				|  |  | +    $("#map_btn_high").removeClass('map_btn_high_off');
 | 
	
		
			
				|  |  | +    $("#map_btn_high").addClass('map_btn_high_on');
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +var higher_mouseout = function() {
 | 
	
		
			
				|  |  | +    $("#map_btn_high").removeClass('map_btn_high_on');
 | 
	
		
			
				|  |  | +    $("#map_btn_high").addClass('map_btn_high_off');
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +var higher_click = function() {
 | 
	
		
			
				|  |  | +    var pitch = map.getPitch();
 | 
	
		
			
				|  |  | +    pitch -= 5;
 | 
	
		
			
				|  |  | +    if (pitch < 0)
 | 
	
		
			
				|  |  | +        pitch = 0;
 | 
	
		
			
				|  |  | +    map.setPitch(pitch);
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +var lower_mouseover = function() {
 | 
	
		
			
				|  |  | +    $("#map_btn_low").removeClass('map_btn_low_off');
 | 
	
		
			
				|  |  | +    $("#map_btn_low").addClass('map_btn_low_on');
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +var lower_mouseout = function() {
 | 
	
		
			
				|  |  | +    $("#map_btn_low").removeClass('map_btn_low_on');
 | 
	
		
			
				|  |  | +    $("#map_btn_low").addClass('map_btn_low_off');
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +var lower_click = function() {
 | 
	
		
			
				|  |  | +    var pitch = map.getPitch();
 | 
	
		
			
				|  |  | +    pitch += 5;
 | 
	
		
			
				|  |  | +    if (pitch > 83)
 | 
	
		
			
				|  |  | +        pitch = 83;
 | 
	
		
			
				|  |  | +    map.setPitch(pitch);
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +var clear_search = function() {
 | 
	
		
			
				|  |  | +    SearchList = null
 | 
	
		
			
				|  |  | +    show_list_cur = 0;
 | 
	
		
			
				|  |  | +    $("#fp_backbtn").css("display", "none");
 | 
	
		
			
				|  |  | +    firstDraw = true;
 | 
	
		
			
				|  |  | +    if ($("#search_company").val().length > 0) {
 | 
	
		
			
				|  |  | +        $("#search_company").val('');
 | 
	
		
			
				|  |  | +        $("#company_code").val('');
 | 
	
		
			
				|  |  | +        $("#saerch_company_list").html('');
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    if ((!LabelShow) && (StatusStore.length > 0)) {
 | 
	
		
			
				|  |  | +        for (var i = 0; i < StatusStore.length; i++) {
 | 
	
		
			
				|  |  | +            $("#label_" + StatusStore[i].company_code).css('display', 'none');
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +var update_companyList = function() {
 | 
	
		
			
				|  |  | +    $("#saerch_company_list").html('');
 | 
	
		
			
				|  |  | +    SearchList = null
 | 
	
		
			
				|  |  | +    show_list_cur = 0;
 | 
	
		
			
				|  |  | +    if ($("#search_company").val().length > 0) {
 | 
	
		
			
				|  |  | +        var query = new Object();
 | 
	
		
			
				|  |  | +        query.V_LOGINNAME = V_LOGINNAME;
 | 
	
		
			
				|  |  | +        query.V_PASSWORD = V_PASSWORD;
 | 
	
		
			
				|  |  | +        query.V_COMPANY_NAME = $("#search_company").val();
 | 
	
		
			
				|  |  | +        $.ajax({
 | 
	
		
			
				|  |  | +            type: 'POST',
 | 
	
		
			
				|  |  | +            url: baseUrl + "/iot/company/getList",
 | 
	
		
			
				|  |  | +            data: {
 | 
	
		
			
				|  |  | +                queryJson: Ext.JSON.encode(query),
 | 
	
		
			
				|  |  | +                sort: "[{property:'V_COMPANY_NAME',direction:'ASC'}]"
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            success: function(result) {
 | 
	
		
			
				|  |  | +                var json = eval('(' + result + ')');
 | 
	
		
			
				|  |  | +                if (json.action == 'getCompanyList') {
 | 
	
		
			
				|  |  | +                    var list = json.RESULT;
 | 
	
		
			
				|  |  | +                    if (list.length > 0) {
 | 
	
		
			
				|  |  | +                        SearchList = list;
 | 
	
		
			
				|  |  | +                        var saerch_company_list = document.getElementById('saerch_company_list');
 | 
	
		
			
				|  |  | +                        var table = document.createElement('table');
 | 
	
		
			
				|  |  | +                        table.border = '0';
 | 
	
		
			
				|  |  | +                        table.style.width = '300px';
 | 
	
		
			
				|  |  | +                        table.style.border = '0px solid #000';
 | 
	
		
			
				|  |  | +                        saerch_company_list.appendChild(table);
 | 
	
		
			
				|  |  | +                        for (var i = 0; i < list.length; i++) {
 | 
	
		
			
				|  |  | +                            var tr = document.createElement('tr');
 | 
	
		
			
				|  |  | +                            tr.style.border = '0px solid #000';
 | 
	
		
			
				|  |  | +                            table.appendChild(tr);
 | 
	
		
			
				|  |  | +                            var td = document.createElement('td');
 | 
	
		
			
				|  |  | +                            td.id = 'company_code_list_' + list[i].V_COMPANY_CODE;
 | 
	
		
			
				|  |  | +                            td.company_code = list[i].V_COMPANY_CODE;
 | 
	
		
			
				|  |  | +                            td.style.border = '1px solid rgba(255,255,255,0.0)';
 | 
	
		
			
				|  |  | +                            td.style.background = 'rgba(255,255,255,0.3)';
 | 
	
		
			
				|  |  | +                            td.style.fontSize = '14px';
 | 
	
		
			
				|  |  | +                            td.style.cursor = "pointer";
 | 
	
		
			
				|  |  | +                            td.innerHTML = list[i].V_COMPANY_NAME;
 | 
	
		
			
				|  |  | +                            tr.appendChild(td);
 | 
	
		
			
				|  |  | +                            $("#company_code_list_" + list[i].V_COMPANY_CODE).mouseover(function() {
 | 
	
		
			
				|  |  | +                                $(this).css({ "border": "1px solid rgba(64,85,98,0.7)", "background": "rgba(64,85,98,0.7)", "color": "#ffff00", "cursor": "pointer", "font-size": "14px" });
 | 
	
		
			
				|  |  | +                                $("#label_" + this.company_code).css('display', 'block');
 | 
	
		
			
				|  |  | +                                show_list_cur = i + 1;
 |