Commit 0fecd5ae authored by Muhamad's avatar Muhamad

kbdkbl

parent b36b0f09
......@@ -10481,12 +10481,14 @@ var geo_bangunan = L.geoJson(null, {
var njop = 0
} else {
var njop = feature.administrasi.f15.toLocaleString()
var njo = feature.administrasi.f15
}
if (feature.administrasi.f16 == null) {
var njoptkp = 10000000
} else {
var njoptkp = feature.administrasi.f16.toLocaleString()
var njotkp = feature.administrasi.f16
}
if (feature.administrasi.f17 == null) {
......@@ -10495,14 +10497,38 @@ var geo_bangunan = L.geoJson(null, {
var njkp = feature.administrasi.f17.toLocaleString()
}
if (feature.administrasi.f18 == null) {
var pbb = 0
var pbb_depan = "Belum Dihitung"
} else {
var pbb = feature.administrasi.f18.toLocaleString()
var pbb_depan = feature.administrasi.f18.toLocaleString()
var njkp_blm = njo - njotkp
var njkp = 40/100 * njkp_blm
var pbb = 0.5/100 *njkp
var pbb_depan = pbb
if (feature.administrasi.f6 == null){
var luas_bangun = 50
}else{
var luas_bangun = feature.administrasi.f6
}
if (feature.administrasi.f7 == null){
var luas_tanah = 50
}else if (feature.administrasi.f7 == 0 ){
var luas_tanah = luas_bangun
}else{
var luas_tanah = feature.administrasi.f7
}
var luas_lantai = luas_bangun
var klb = luas_lantai / luas_tanah
var kdb = luas_bangun / luas_tanah * 100
// if (feature.administrasi.f18 == null) {
// var pbb = 0
// var pbb_depan = "Belum Dihitung"
// } else {
// var pbb = feature.administrasi.f18.toLocaleString()
// var pbb_depan = feature.administrasi.f18.toLocaleString()
// }
// if (feature.properties.f4 != null) {
// var list_history = feature.properties.f4
// console.log(list_history[0].split(",")[0])
......@@ -10950,6 +10976,26 @@ var geo_bangunan = L.geoJson(null, {
<span style="font-family: 'gilroysemibold';">` + feature.administrasi.f7 + ` m</span>
</div>
</div>
<div>
<div style="margin-top:5px;">
<span style="font-family: 'gilroylight';">KDB</span>
</div>
<div>
<span style="font-family: 'gilroysemibold';"> ` + kdb + ` % </span>
</div>
</div>
<div>
<div style="margin-top:5px;">
<span style="font-family: 'gilroylight';">KLB</span>
</div>
<div>
<span style="font-family: 'gilroysemibold';"> ` + klb + ` </span>
</div>
</div>
</div>
<div class="col-md-6">
<div>
......@@ -10975,7 +11021,7 @@ var geo_bangunan = L.geoJson(null, {
<span style="font-family: 'gilroylight';">Estimasi PBB</span>
</div>
<div>
<span style="font-family: 'gilroysemibold';"> ` + pbb_depan + ` </span>
<span style="font-family: 'gilroysemibold';"> RP. ` + pbb_depan + ` </span>
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment