Commit 19bec183 authored by Muhamad's avatar Muhamad

upgrade .js scripts_js_m scripts_js_o scripts_layout, dll

parent 12b4d15f
......@@ -7,7 +7,7 @@ from django.contrib.auth.decorators import login_required
app_name = 'api'
urlpatterns = [
path('search_auto', views.search_auto, name='search'),
path('search_auto', views.search_auto),
path('kantor_administrasi', views.kantor_administrasi, name='kantor_administrasi'),
path('layanan_kesehatan', views.layanan_kesehatan, name='layanan_kesehatan'),
......@@ -30,7 +30,7 @@ urlpatterns = [
path('edit', views.editpoly, name='edit'),
path('validatedit', views.validatedit, name='validatedit'),
path('hapus', views.hapus, name='hapus'),
path('hasilsearch', views.hasilsearch, name='ressearch'),
path('ressearch', views.hasilsearch, name='ressearch'),
path('editkependudukan/', views.editkependudukan, name='kependudukan'),
......@@ -83,13 +83,12 @@ urlpatterns = [
path('3d-maps', views.maps3d, name='3d-maps'),
path('deletejalan', views.deletejalan, name='hapus-jalan'),
path('hapus-jalan', views.deletejalan, name='hapus-jalan'),
path('filt_perbaikan_kecamatan', views.filt_perbaikan_kecamatan),
path('filt_perbaikan_desa', views.filt_perbaikan_desa),
path('user-data', views.user_data, name='user-data'),
path('deletejalan', views.deletejalan, name='hapus-jalan'),
path('search_spes', views.search_spes, name='search_spes'),
path('search_lanjut', views.search_lanjut, name='search_lanjut'),
path('load_point_id', views.load_point_id),
......
This diff is collapsed.
......@@ -1340,7 +1340,7 @@ function l_kes() {
if (checkBox.checked == true) {
// loaderPage(true);
$.ajax({
url: "api/layanan_kesehatan'%}",
url: "api/layanan_kesehatan",
dataType: 'json',
type: 'GET',
success: function(response) {
......@@ -1790,7 +1790,7 @@ function pks() {
if (checkBox.checked == true) {
// loaderPage(true);
$.ajax({
url: "api/apiviewpuskesmas'%}",
url: "api/apiviewpuskesmas",
dataType: 'json',
type: 'GET',
success: function(response) {
......@@ -2225,7 +2225,7 @@ function rs() {
if (checkBox.checked == true) {
// loaderPage(true);
$.ajax({
url: "api/rumah_sakit'%}",
url: "api/rumah_sakit",
dataType: 'json',
type: 'GET',
success: function(response) {
......@@ -2781,7 +2781,7 @@ function fiksi() {
if (checkBox.checked == true) {
// loaderPage(true);
$.ajax({
url: "api/sarana_ibadah'%}",
url: "api/sarana_ibadah",
dataType: 'json',
type: 'GET',
success: function(response) {
......@@ -3319,7 +3319,7 @@ function didik() {
if (checkBox.checked == true) {
// loaderPage(true);
$.ajax({
url: "api/sarana_pendidikan'%}",
url: "api/sarana_pendidikan",
dataType: 'json',
type: 'GET',
success: function(response) {
......@@ -5710,15 +5710,24 @@ function swiftAlert(itype, ititle, itext) {
// var map_cesium = new Cesium.Viewer('map-cesium');
function mapsganti() {
// $.getScript('/static/Cesium-185/Build/Cesium/Cesium.js', function() {
// });
// $.getScript('/static/Cesium-185/Build/Cesium/Cesium.js');
var checkBox_3d = document.getElementById("mapschange");
$('#scrcesium').append('<script id="scrheadcesium" src="/static/Cesium-185/Build/Cesium/Cesium.js"><\/script>');
var map_cesium = new Cesium.Viewer('map-cesium', {
imageryProvider: new Cesium.BingMapsImageryProvider({
url: '//dev.virtualearth.net',
key: 'Anj9XBZaRShAMdbXJlZ16iqEVpjikY1eY_dzqGl451WYkSKV3l_FJaFgMbhwdbLz',
mapStyle: Cesium.BingMapsStyle.AERIAL
//url : '//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer',
//url : Cesium.buildModuleUrl('/static/Cesium-185/Build/Cesium/Assets/Textures/NaturalEarthII')
}),
baseLayerPicker: false,
geocoder: false
});
if (checkBox_3d.checked == true) {
$("#modalsearch3d").modal()
$.ajax({
url: "api/search",
url: "api/search_auto",
data: {
'namadesa': 'search'
},
......
......@@ -857,6 +857,9 @@ function batasdesa() {
var checkBox = document.getElementById("batas_desa");
if (checkBox.checked == true) {
// loaderPage(true);
$('#scrapex').append(`<script id="idscrapexmin" type="text/javascript " src="static/js/apexcharts.min.js"><\/script>`);
$('#scrapex').append(`<script id="idscrapex" type="text/javascript " src="static/js/apexcharts.js"><\/script>`);
if (map.hasLayer(geo_batas_kel)) {
geo_batas_kel.clearLayers()
geo_batas_kel.remove()
......
This diff is collapsed.
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