Commit 2b3f8233 authored by Muhamad's avatar Muhamad

Merge branch 'master' of http://git.khansia.co.id/Nahrowi/oku-gis

parents 0b0c9a0d e0f3e701
......@@ -63,7 +63,7 @@ class Dashboard(generic.TemplateView):
puskesmas_result.append(i[0])
with conn.cursor() as rumah_sakit:
rumah_sakit.execute("SELECT json_build_object('type', 'Feature', 'administrasi', (a.namobj, a.remark), 'geometry', ST_AsGeoJSON(a.geom :: geometry) :: json) from geo_rumah_sakit a join geo_prov_kab b on st_intersects(a.geom,b.geom)")
rumah_sakit.execute("SELECT json_build_object('type', 'Feature', 'administrasi', (a.namobj, a.alamat, a.remark), 'geometry', ST_AsGeoJSON(a.geom :: geometry) :: json) from geo_rumah_sakit a join geo_prov_kab b on st_intersects(a.geom,b.geom)")
rumah_sakit_res = rumah_sakit.fetchall()
rumah_sakit_result = []
......
......@@ -85,6 +85,8 @@ DATABASES = {
'PASSWORD' : 'khansia215758',
'HOST': '30.10.20.102',
'PORT': '5432',
# 'HOST': '103.126.28.66',
# 'PORT': '8082',
}
}
......
<style>
#button_hide_point {
line-height: 15px;
width: 40px;
font-size: 10pt;
font-family: tahoma;
margin-top: 3px;
margin-right: 3px;
position: absolute;
top: 0;
right: 0;
z-index: 99999999;
}
#button_unhide_point {
line-height: 15px;
width: 40px;
font-size: 10pt;
font-family: tahoma;
right: 60px;
position: absolute;
bottom: 0;
z-index: 99999999;
}
.legendapo {
background: #ffffffa6;
position: fixed;
......
......@@ -382,6 +382,88 @@
offset: [0, 0]
});
return marker
},onEachFeature: function(feature, layer) {
layer.on({
click: function(e) {
content =`
<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<tr>
<th style="padding: 0 0 0 0px;">
<img src="static/img/icon/rs.svg" alt="Image" style="width: 100%;max-height: 237px;height:237">
</th>
</tr>
</thead>
<tbody>
<div class= "container">
<tr style="height: 100px;">
<th>
<div>
<h1 style="font-family: Google Sans,Roboto,Arial,sans-serif;
letter-spacing: 0;
font-weight: 400;">
<span style="font-size: x-large;">
` + feature.administrasi.f1 + `
</span>
</h1>
</div>
</th>
</tr>
</div>
<div class= "container">
<tr style="height: 30px;">
<th>
<span>
` + feature.administrasi.f3 + `
</span>
</th>
</tr>
</div>
<div class= "container">
<tr style="height: 40px;">
<th>
<span>
` + feature.administrasi.f2 + `
</span>
</th>
</tr>
</div>
<div class= "container">
<tr style="height: 40px;">
<th>
<p>
<span>Luas Bangunan : None</span>
</p>
<p>
<span>Luas Tanah : None</span>
</p>
<p>
<span>Tinggi Bangunan : None</span>
</p>
</th>
</tr>
</div>
<div class= "container">
<tr style="height: 40px;">
<th>
<p>
<span> </span>
</p>
</th>
</tr>
</div>
</tbody>
</table>`;
$("#panel-samping").css("display", "block");
$("#button_hide_panel").css("display", "block")
$("#thisFooter").css('left', '380px');
$("#thisFooter").css('width', '930px');
$("#thisFooter").css('display', 'none');
$("#button_unhide").css('display', 'block')
$("#isi_panel").html(content)
$()
}
})
}
});
......
......@@ -855,9 +855,6 @@
click: function(e) {
//var geogeo = geocodeService.reverse().latlng(e.latlng).run(function(error, result) {
var content = `
<a id="btn_edit_kelurahan" style="position: absolute;
top: 240px;
right: 5px;">Edit</a>
<table class="table table-hover tasks-list">
<thead style="text-align: center;">
<tr>
......
......@@ -3,7 +3,9 @@
<input type="hidden" id="infoLongitude">
<input type="hidden" id="infoLatitude">
<input type="hidden" id="infoLimitx">
<div>
<a href="#" class="btn btn-default" id="button_hide_point"><span class="caret" style="margin-left: -5px;"></span></a>
</div>
<div class="row">
<div class="col-xs-12">
<div class="col-md-2" style="min-width: 150px;">
......@@ -301,4 +303,7 @@
</div>
</div>
<div>
<a href="#" class="btn btn-default" id="button_unhide_point" style="display: none;"><span class="caret" style="margin-left: -5px;transform: rotate(180deg)"></span></a>
</div>
</div>
\ No newline at end of file
......@@ -42,7 +42,7 @@
</div>
<div class="fixed-plugin" style="position: absolute;z-index: 999;top: 60px;">
<div class="fixed-plugin" style="position: absolute;z-index: 999;">
<div class="dropdown show-dropdown">
<a href="#" data-toggle="dropdown">
<i class="fa fa-map-o fa-2x" style="color: #FFFFFF;
......@@ -50,6 +50,57 @@
border-radius: 0 0 6px 6px;
width: auto;"> </i>
</a>
<ul class="dropdown-menu" x-placement="bottom-start" style="float: right; position: absolute; margin-left: -757px !important; margin-top: -35px !important;">
<li class="header-title"> Maps BaseLayer</li>
<div class="dropdown-content-body">
<div class="row text-center">
<div class="col-md-3" style="margin-top: 2px;">
<ul class="menu-list">
<a href="#" data-toggle="collapse" data-target=".navbar-collapse.in" id="OpenStreetMap">
<img src="{% static 'img/maps/osm.PNG' %}" alt="" style="min-width: 180px; min-height:20px;">
<span class="menu-heading">
Google Street</span>
</a>
</ul>
</div>
<div class="col-md-3">
<ul class="menu-list">
<a href="#" data-toggle="collapse" data-target=".navbar-collapse.in" id="WorldImagery">
<img src="{% static 'img/maps/esri.png' %}" alt="" style="min-width: 180px; min-height:20px;">
<span class="menu-heading">
World Imagery</span>
</a>
</ul>
</div>
<div class="col-md-3">
<ul class="menu-list">
<a href="#" data-toggle="collapse" data-target=".navbar-collapse.in" id="BingSatellite">
<img src="{% static 'img/maps/bing.png' %}" alt="" style="min-width: 180px; min-height:20px;">
<span class="menu-heading">
Bing Satellite</span>
</a>
</ul>
</div>
<div class="col-md-3">
<ul class="menu-list">
<a href="#" data-toggle="collapse" data-target=".navbar-collapse.in" id="GoogleSatellite">
<img src="{% static 'img/maps/esri.png' %}" alt="" style="min-width: 180px; min-height:20px;">
<span class="menu-heading">
Google Satellite</span>
</a>
</ul>
</div>
</div>
</div>
</ul>
</div>
</div>
<div class="fixed-plugin" style="position: absolute;z-index: 999;top: 60px;">
<div class="dropdown show-dropdown">
<a href="#" data-toggle="dropdown">
<i class="fa fa-cog fa-2x"> </i>
</a>
<ul class="dropdown-menu" style="float: right; position: absolute; margin-left: -757px !important; margin-top: -34px !important;">
<li class="header-title"> Sidebar Filters</li>
<!-- <div id="sidebar" onmouseleave="overll()">
......@@ -198,57 +249,6 @@
</div>
</div>
<div class="fixed-plugin" style="position: absolute;z-index: 999;">
<div class="dropdown show-dropdown">
<a href="#" data-toggle="dropdown">
<i class="fa fa-cog fa-2x"> </i>
</a>
<ul class="dropdown-menu" x-placement="bottom-start" style="float: right; position: absolute; margin-left: -757px !important; margin-top: -35px !important;">
<li class="header-title"> Maps BaseLayer</li>
<div class="dropdown-content-body">
<div class="row text-center">
<div class="col-md-3" style="margin-top: 2px;">
<ul class="menu-list">
<a href="#" data-toggle="collapse" data-target=".navbar-collapse.in" id="OpenStreetMap">
<img src="{% static 'img/maps/osm.PNG' %}" alt="" style="min-width: 180px; min-height:20px;">
<span class="menu-heading">
Google Street</span>
</a>
</ul>
</div>
<div class="col-md-3">
<ul class="menu-list">
<a href="#" data-toggle="collapse" data-target=".navbar-collapse.in" id="WorldImagery">
<img src="{% static 'img/maps/esri.png' %}" alt="" style="min-width: 180px; min-height:20px;">
<span class="menu-heading">
World Imagery</span>
</a>
</ul>
</div>
<div class="col-md-3">
<ul class="menu-list">
<a href="#" data-toggle="collapse" data-target=".navbar-collapse.in" id="BingSatellite">
<img src="{% static 'img/maps/bing.png' %}" alt="" style="min-width: 180px; min-height:20px;">
<span class="menu-heading">
Bing Satellite</span>
</a>
</ul>
</div>
<div class="col-md-3">
<ul class="menu-list">
<a href="#" data-toggle="collapse" data-target=".navbar-collapse.in" id="GoogleSatellite">
<img src="{% static 'img/maps/esri.png' %}" alt="" style="min-width: 180px; min-height:20px;">
<span class="menu-heading">
Google Satellite</span>
</a>
</ul>
</div>
</div>
</div>
</ul>
</div>
</div>
<!-- Second navbar -->
<div class="navbar navbar-default" id="navbar-second" style="display: none;">
<ul class="nav navbar-nav no-border visible-xs-block">
......
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