Commit ceb27a33 authored by Muhamad's avatar Muhamad

cc

parent 8ecf5493
......@@ -915,7 +915,7 @@ background: none;border-color: transparent;">
$(".lebar_jalan_detail ").html("Null")
$(".proposal_detail ").html(`
<a href="media/proposal/null" id="downloadproposal ">
<img src="{% static 'img/icon-1/proposal.svg' %} " alt=" " style="height: 65px;width: 65px; ">
<img src="{% static 'img/icon-1/proposal.svg' %} " alt=" " style="height: 80px;width: 80px; ">
</a>`);
......
......@@ -512,9 +512,9 @@
var geocoderNominatim = new L.Control.Geocoder.Nominatim();
var dapoin = [data[0][0]['geometry']['coordinates'][1], data[0][0]['geometry']['coordinates'][0]]
console.log(data[0])
// map.setView([data[0]['geometry']['coordinates'][0][0][0][1], data[0]['geometry']['coordinates'][0][0][0][0]], 19);
// var result_point = JSON.parse("" + data + "")
// console.log(result_point)
// map.setView([data[0]['geometry']['coordinates'][0][0][0][1], data[0]['geometry']['coordinates'][0][0][0][0]], 19);
// var result_point = JSON.parse("" + data + "")
// console.log(result_point)
var geo_point = L.geoJson(null, {
pointToLayer: function(feature, latlng) {
......@@ -772,7 +772,7 @@
geo_point.clearLayers()
geo_point.remove()
});
// $.ajax({
// url: "{% url 'api:search_lanjut' %}",
// data: {
......@@ -783,7 +783,7 @@
// dataType: 'json',
// success: function(data) {
// console.log(data)
// dapoin = [data[0][0]['geometry']['coordinates'][1], data[0][0]['geometry']['coordinates'][0]]
// // var poinin = L.marker(dapoin).addTo(map)
// geo_json_point(dapoin)
......@@ -801,7 +801,7 @@
maxZoom: 22,
minZoom: 4,
}).addTo(map_edit);
var idspo = idm
var dbspo = db
loaderPage(false);
......@@ -844,8 +844,8 @@
data.append('alamat', $('#alamat').val())
data.append('perangkat', $('#perangkat').val())
data.append('point', poi),
data.append('gambar', $('#gambar').val()),
data.append('dbspo', dbsave)
data.append('gambar', $('#gambar').val()),
data.append('dbspo', dbsave)
console.log(data)
$.ajax({
url: "{% url 'api:saveeditspo' %}",
......@@ -2071,55 +2071,6 @@
dataType: 'json',
success: function(data) {
var geo_jalan = L.geoJson(null, {
// style: function(feature) {
// var zoom = map.getZoom()
// console.log(zoom)
// if (zoom < 18) {
// return {
// color: "#808080",
// weight: 8,
// opacity: 2,
// zIndex: 1000
// };
// } else if (zoom > 17 && zoom < 19) {
// return {
// color: "#808080",
// weight: 10,
// opacity: 2,
// zIndex: 1000
// };
// } else if (zoom > 18 && zoom < 20) {
// return {
// color: "#808080",
// weight: 20,
// opacity: 2,
// zIndex: 1000
// };
// } else if (zoom > 19 && zoom < 21) {
// return {
// color: "#808080",
// weight: 30,
// opacity: 2,
// zIndex: 1000
// };
// } else if (zoom > 20 && zoom < 22) {
// return {
// color: "#808080",
// weight: 50,
// opacity: 2,
// zIndex: 1000
// };
// } else if (zoom > 21 && zoom < 23) {
// return {
// color: "#808080",
// weight: 60,
// opacity: 2,
// zIndex: 1000
// };
// }
// },
onEachFeature: function(feature, layer) {
if (feature.properties) {
......
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