| Address: | "+setNullValue(featureAttributes.Street_Num,"--") + " "
+
+ resultItems.push("");
+ resultItems.push("Building Information");
+ resultItems.push("| Address: | "+setNullValue(featureAttributes.Street_Num,"--") + " "
+ setNullValue(featureAttributes.Street_Nam,"--") +" | "
+"| Neighborhood: | "+setNullValue(featureAttributes.NBHD, "--")+" | "
+"| Property Type: | "+setNullValue(featureAttributes.Structure, "--")+" | "
@@ -505,35 +395,38 @@
+"| Commercial Units: | "+setNullValue(featureAttributes.comunit, "--")+" | "
+"| Total Story: | "+setNullValue(featureAttributes.story, "--")+" | "
+"| Year Built: | "+setNullValue(featureAttributes.AYB, "--")+" | "
- +"| Zoning Code: | "+setNullValue(featureAttributes.Zone_1, "--")+" | "
+ +"| Zoning Code: | "+setNullValue(featureAttributes.Zone_1, "--")+" | "
+" ");
resultItems.push("
");
resultItems.push("Tax Information");
resultItems.push(""
- +"| DOF Value: | $"+setNullValue(localeNumber.format(featureAttributes.fmv), "--")+" | "
- +"| Agi_Pgsf: | $"+setNullValue(localeNumber.format(featureAttributes.Agi_Pgsf), "--")+" | "
- +"| Exp_Pgsf: | $"+setNullValue(localeNumber.format(featureAttributes.Exp_Pgsf), "--")+" | "
- +"| Noi_Pgsf: | $"+setNullValue(localeNumber.format(featureAttributes.Noi_Pgsf), "--")+" | "
+ +" | This Parcel | Neighborhood Median | "
+ +"| DOF Value: | $"+setNullValue(localeNumber.format(featureAttributes.fmv), "--")+" | $"+setNullValue(localeNumber.format(featureAttributes.mid_fmv), "--")+" | "
+ +"| DOF Value pgsf: | $"+setNullValue(localeNumber.format(featureAttributes.fmv_pgsf), "--")+" | $"+setNullValue(localeNumber.format(featureAttributes.mid_fmvpsf), "--")+" | "
+ +"| Agi_Pgsf: | $"+setNullValue(localeNumber.format(featureAttributes.Agi_Pgsf), "--")+" | $"+setNullValue(localeNumber.format(featureAttributes.mid_agi), "--")+" | "
+ +"| Exp_Pgsf: | $"+setNullValue(localeNumber.format(featureAttributes.Exp_Pgsf), "--")+" | $"+setNullValue(localeNumber.format(featureAttributes.mid_exp), "--")+" | "
+ +"| Noi_Pgsf: | $"+setNullValue(localeNumber.format(featureAttributes.Noi_Pgsf), "--")+" | $"+setNullValue(localeNumber.format(featureAttributes.mid_noi), "--")+" | "
+" ");
resultItems.push("
Guideline Information");
resultItems.push(""
- +"| Bcat: | Row:1 | "
- +"| Vacancy Rate: | Row:1 | "
- +"| Effective Tax Rate: | Row:1 | "
+ +"| Building Category: | "+guideline[featureAttributes.bcat][17] +" | "
+ +"| Max Vacancy Rate: | "+guideline[featureAttributes.bcat][0]+" | "
+ +"| Effective Tax Rate: | "+guideline[featureAttributes.bcat][1]+" | "
+" | Low | Median | High | "
- +"| Income | Row:4 Cell:2 | Row:4 Cell:3 | Row:4 Cell:4 | "
- +"| Expense | Row:5 Cell:2 | Row:5 Cell:3 | Row:5 Cell:4 | "
- +"| Expense Ratio | Row:6 Cell:2 | Row:6 Cell:3 | Row:6 Cell:4 | "
- +"| Cap Rate | Row:7 Cell:2 | Row:7 Cell:3 | Row:7 Cell:4 | "
- +"| Approximate Market Value Range | Row:8 Cell:2 | Row:8 Cell:3 | Row:8 Cell:4 | "
+ +"| Income | "+guideline[featureAttributes.bcat][12]+" | "+guideline[featureAttributes.bcat][7]+" | "+guideline[featureAttributes.bcat][2]+" | "
+ +"| Expense | "+guideline[featureAttributes.bcat][13]+" | "+guideline[featureAttributes.bcat][8]+" | "+guideline[featureAttributes.bcat][3]+" | "
+ +"| Expense Ratio | "+guideline[featureAttributes.bcat][14]+" | "+guideline[featureAttributes.bcat][9]+" | "+guideline[featureAttributes.bcat][4]+" | "
+ +"| Cap Rate | "+guideline[featureAttributes.bcat][15]+" | "+guideline[featureAttributes.bcat][10]+" | "+guideline[featureAttributes.bcat][5]+" | "
+ +"| Approximate Market Value Range | "+guideline[featureAttributes.bcat][16]+" | "+guideline[featureAttributes.bcat][11]+" | "+guideline[featureAttributes.bcat][6]+" | "
+" ");
resultItems.push("");
- resultItems.push(""
- +""
- +""
- +"");
+ resultItems.push("
Useful Links");
+ resultItems.push("");
function setNullValue(value, defaultValue){
@@ -570,6 +463,7 @@
dijit.byId("toolsPane").destroyDescendants(false);
domConstruct.empty("toolsPane");
document.getElementById("alerttext").innerHTML="";
+ document.getElementById('SearchBox').style.height = "100px";
document.getElementById("execute2").disabled = true;
//If multiple results are found, it will default and select the first.
searchvar.set("activeSourceIndex", 0);
@@ -582,7 +476,7 @@
}
//Query--condounit
//Initiate Query
- var queryTaskunit = new QueryTask("//services3.arcgis.com/aD88pT4hjL80xq0F/arcgis/rest/services/tc2MH_unitlist1_12212015/FeatureServer/0");
+ var queryTaskunit = new QueryTask(cdunittable);
var queryunit = new Query();
queryunit.returnGeometry = false;
queryunit.outFields = ["*"]
@@ -592,6 +486,7 @@
dijit.byId("toolsPane").destroyDescendants(false);
domConstruct.empty("toolsPane");
document.getElementById("alerttext").innerHTML="";
+ document.getElementById('SearchBox').style.height = "100px";
var search_block = dom.byId("searchtext_Block").value;
var search_lot = dom.byId("searchtext_Lot").value;
var searchx = search_block + "/" + search_lot;
@@ -614,6 +509,7 @@
execute();
}else{
document.getElementById("alerttext").innerHTML = "BBL cannot be find\nPlease enter a valid block and lot for Condominium Unit.";
+ document.getElementById('SearchBox').style.height = "150px";
return;
};
@@ -637,10 +533,16 @@
query.where = "CONDO_KEY = "+curCDkey +" and Unit='"+curCDunit+"'";
}else{
query.where = "CONDO_KEY = "+curCDkey ;
+ document.getElementById("alerttext").innerHTML = "Please enter a Condominium Unit block and lot for details on the building.";
+ document.getElementById('SearchBox').style.height = "150px";
}
queryTask.execute(query, showResults,function(error){console.log(error);});
}
function showResults (results) {
+
+ document.getElementById('toolsPane').style.width="30vw";
+ document.getElementById('toolsPane').style.zindex="300";
+ dijit.byId("borderContainer").resize();
var resultItems = [];
var resultCount = results.features.length;
dijit.byId("toolsPane").destroyDescendants(false);
@@ -667,25 +569,32 @@
resultItems.push("Tax Information");
resultItems.push(""
- +"| DOF Value: | $"+setNullValue(localeNumber.format(featureAttributes.fmv), "--")+" | "
- +"| Agi_Pgsf: | $"+setNullValue(localeNumber.format(featureAttributes.Agi_Pgsf), "--")+" | "
- +"| Exp_Pgsf: | $"+setNullValue(localeNumber.format(featureAttributes.Exp_Pgsf), "--")+" | "
- +"| Noi_Pgsf: | $"+setNullValue(localeNumber.format(featureAttributes.Noi_Pgsf), "--")+" | "
+ +" | This Parcel | Neighborhood Median | "
+ +"| DOF Value: | $"+setNullValue(localeNumber.format(featureAttributes.fmv), "--")+" | $"+setNullValue(localeNumber.format(featureAttributes.mid_fmv), "--")+" | "
+ +"| DOF Value pgsf: | $"+setNullValue(localeNumber.format(featureAttributes.fmv_pgsf), "--")+" | $"+setNullValue(localeNumber.format(featureAttributes.mid_fmvpsf), "--")+" | "
+ +"| Agi_Pgsf: | $"+setNullValue(localeNumber.format(featureAttributes.Agi_Pgsf), "--")+" | $"+setNullValue(localeNumber.format(featureAttributes.mid_agi), "--")+" | "
+ +"| Exp_Pgsf: | $"+setNullValue(localeNumber.format(featureAttributes.Exp_Pgsf), "--")+" | $"+setNullValue(localeNumber.format(featureAttributes.mid_exp), "--")+" | "
+ +"| Noi_Pgsf: | $"+setNullValue(localeNumber.format(featureAttributes.Noi_Pgsf), "--")+" | $"+setNullValue(localeNumber.format(featureAttributes.mid_noi), "--")+" | "
+" ");
resultItems.push("
Guideline Information");
resultItems.push(""
- +"| Bcat: | Row:1 | "
- +"| Vacancy Rate: | Row:1 | "
- +"| Effective Tax Rate: | Row:1 | "
+ +"| Building Category: | "+guideline[featureAttributes.bcat][17] +" | "
+ +"| Max Vacancy Rate: | "+guideline[featureAttributes.bcat][0]+" | "
+ +"| Effective Tax Rate: | "+guideline[featureAttributes.bcat][1]+" | "
+" | Low | Median | High | "
- +"| Income | Row:4 Cell:2 | Row:4 Cell:3 | Row:4 Cell:4 | "
- +"| Expense | Row:5 Cell:2 | Row:5 Cell:3 | Row:5 Cell:4 | "
- +"| Expense Ratio | Row:6 Cell:2 | Row:6 Cell:3 | Row:6 Cell:4 | "
- +"| Cap Rate | Row:7 Cell:2 | Row:7 Cell:3 | Row:7 Cell:4 | "
- +"| Approximate Market Value Range | Row:8 Cell:2 | Row:8 Cell:3 | Row:8 Cell:4 | "
+ +"| Income | "+guideline[featureAttributes.bcat][12]+" | "+guideline[featureAttributes.bcat][7]+" | "+guideline[featureAttributes.bcat][2]+" | "
+ +"| Expense | "+guideline[featureAttributes.bcat][13]+" | "+guideline[featureAttributes.bcat][8]+" | "+guideline[featureAttributes.bcat][3]+" | "
+ +"| Expense Ratio | "+guideline[featureAttributes.bcat][14]+" | "+guideline[featureAttributes.bcat][9]+" | "+guideline[featureAttributes.bcat][4]+" | "
+ +"| Cap Rate | "+guideline[featureAttributes.bcat][15]+" | "+guideline[featureAttributes.bcat][10]+" | "+guideline[featureAttributes.bcat][5]+" | "
+ +"| Approximate Market Value Range | "+guideline[featureAttributes.bcat][16]+" | "+guideline[featureAttributes.bcat][11]+" | "+guideline[featureAttributes.bcat][6]+" | "
+" ");
resultItems.push("");
+ resultItems.push("
Useful Links");
+ resultItems.push("");
function setNullValue(value, defaultValue){
if (value == 0 || value ==""||value == "0" ||value == "$0") {
@@ -728,8 +637,10 @@
var block = bbl[1];
var lot = bbl[2];
document.getElementById("alerttext").innerHTML = "";
+ document.getElementById('SearchBox').style.height = "100px";
document.getElementById("searchtext_Block").setAttribute("value", block);
document.getElementById("searchtext_Lot").setAttribute("value", lot);
+ //add here
if (curCDkey/*curLot>7500*/){
//executeunit();
//curBL = curBBL.substring(2,curBBL.length);
@@ -750,29 +661,52 @@
}
+ var splitter = registry.byId("borderContainer").getSplitter("leading");
+ var moveHandle = null;
+
+ aspect.after(splitter, "_startDrag", function() {
+ moveHandle = aspect.after(splitter.domNode, "onmousemove", function() {
+ var coords = {
+ x: !splitter.horizontal ? splitter.domNode.style.left : 0,
+ y: splitter.horizontal ? splitter.domNode.style.top : 0
+ }
+ //dom.byId("dndOutput").textContent = JSON.stringify(coords);
+ })
+ });
+ aspect.after(splitter, "_stopDrag", function() {
+ moveHandle && moveHandle.remove();
+ });
+
+ aspect.after(registry.byId("toolsPane"), "resize", function(duno, size) {
+ //dom.byId("resizeOutput").textContent = JSON.stringify(size);
+ });
+
+ function resizeWindow() {
+ dijit.byId("borderContainer").resize();
+ }
});
-
-
+
+
 |
- | Tax Class 2 Property Search Map: Manhattan |
- | Home |
+ | Tax Class 2 Property Search Map: Queens |
+ | Home |
- |