Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
508 changes: 1 addition & 507 deletions bandung/a.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion endpoint/a/1204004/geojson.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const map = L.map('map').setView([-0.8896256229195234,119.87333281178806], 12);
const map = L.map('map').setView([-6.845032374373225,107.5629300968354], 12);

const tiles = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
Expand Down
4 changes: 2 additions & 2 deletions endpoint/a/1204004/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Palu</title>
<title>Bandung Barat</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css" integrity="sha256-kLaT2GOSpHechhsozzB+flnD+zUyjE2LlfWPgU04xyI=" crossorigin="" />
<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js" integrity="sha256-WBkoXOwTeyKclOHuWtc+i2uENFpDZ9YPdf5Hf+D7ewM=" crossorigin=""></script>
Expand All @@ -14,7 +14,7 @@
<body>
<div class="container" >
<div class="mt-4">
<h1 class="h2" align="center" ><strong>GIS</strong> <br> Geojson Webservice - Palu
<h1 class="h2" style="align-items: center;" ><strong>GIS</strong> <br> Geojson Webservice - Bandung Barat
</h1>
</div>

Expand Down
6 changes: 3 additions & 3 deletions endpoint/a/1204004/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function panggil(long, lat) {
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
"api-key": "e5hbqzGJXhI5uo0fyl9IXhk6mIngiMWkv6MPKihE5Yo6wVPkSojlavLD30to4qXJ",
"api-key": "8NezVmricO3RNcEhgmyMKj6I5KGXPvvHbFtGvYfAe3ljydGY4ATTClVBY0TKsPs5",
"long": long,
"lat": lat
});
Expand All @@ -28,12 +28,12 @@ function panggil(long, lat) {
redirect: 'follow'
};

fetch("https://asia-south1.gcp.data.mongodb-api.com/app/endpoint-skqgf/endpoint/geojson", requestOptions)
fetch("https://asia-south1.gcp.data.mongodb-api.com/app/haryadiendpoint-fshsu/endpoint/haryadiendpoint", requestOptions)
.then(response => response.text())
.then(result => hasil(result))
.catch(error => console.log('error', error));

fetch("https://asia-south1.gcp.data.mongodb-api.com/app/endpoint-skqgf/endpoint/coord", requestOptions)
fetch("https://asia-south1.gcp.data.mongodb-api.com/app/haryadiendpoint-fshsu/endpoint/haryadiendpoint", requestOptions)
.then(response => response.text())
.then(result => geo(JSON.parse(result)))
.catch(error => console.log('error', error));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const map = L.map('map').setView([-0.0353948,109.2615099], 12);
const map = L.map('map').setView([-6.845032374373225,107.5629300968354], 12);

const tiles = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pontianak</title>
<title>Bandung Barat</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css" integrity="sha256-kLaT2GOSpHechhsozzB+flnD+zUyjE2LlfWPgU04xyI=" crossorigin="" />
<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js" integrity="sha256-WBkoXOwTeyKclOHuWtc+i2uENFpDZ9YPdf5Hf+D7ewM=" crossorigin=""></script>
Expand All @@ -14,7 +14,7 @@
<body>
<div class="container" >
<div class="mt-4">
<h1 class="h2" align="center" ><strong>GIS</strong> <br> Geojson Web Service - Pontianak
<h1 class="h2" ><strong>GIS</strong> <br> Geojson Webservice - Bandung Barat
</h1>
</div>

Expand Down
6 changes: 3 additions & 3 deletions endpoint/a/1204011/script.js → endpoint/a/1204026/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function panggil(long, lat) {
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
"api-key": "e5hbqzGJXhI5uo0fyl9IXhk6mIngiMWkv6MPKihE5Yo6wVPkSojlavLD30to4qXJ",
"api-key": "8NezVmricO3RNcEhgmyMKj6I5KGXPvvHbFtGvYfAe3ljydGY4ATTClVBY0TKsPs5",
"long": long,
"lat": lat
});
Expand All @@ -28,12 +28,12 @@ function panggil(long, lat) {
redirect: 'follow'
};

fetch("https://asia-south1.gcp.data.mongodb-api.com/app/endpoint-skqgf/endpoint/geojson", requestOptions)
fetch("https://asia-south1.gcp.data.mongodb-api.com/app/haryadiendpoint-fshsu/endpoint/haryadiendpoint", requestOptions)
.then(response => response.text())
.then(result => hasil(result))
.catch(error => console.log('error', error));

fetch("https://asia-south1.gcp.data.mongodb-api.com/app/endpoint-skqgf/endpoint/coord", requestOptions)
fetch("https://asia-south1.gcp.data.mongodb-api.com/app/haryadiendpoint-fshsu/endpoint/haryadiendpoint", requestOptions)
.then(response => response.text())
.then(result => geo(JSON.parse(result)))
.catch(error => console.log('error', error));
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion leaflet/a/1204011/pontianak/pontianak.json

This file was deleted.

Binary file added leaflet/a/1204026/Haryadi Yusuf.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions leaflet/a/1204026/bandung barat/bandung barat.geojson

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions leaflet/a/1204026/bandung barat/bandung barat.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
html,
body {
height: 100%;
margin: 0;
}
.leaflet-container {
height: 100%;
width: 100%;
max-width: 100%;
max-height: 100%;
html,
body {
height: 100%;
margin: 0;
}

.leaflet-container {
height: 100%;
width: 100%;
max-width: 100%;
max-height: 100%;
}
40 changes: 20 additions & 20 deletions leaflet/a/1204011/index.html → leaflet/a/1204026/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<html lang="en">
<head>
<base target="_top" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Chapter 3 - Memanggil Geojson dengan Javascript</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" />
<link
rel="stylesheet"
href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css" />
<link rel="stylesheet" href="css/geojson.css" />
<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script>
</head>
<body>
<div id="map"></div>
<script src="js/lib.js" type="text/javascript"></script>
<script src="js/geojson.js" type="text/javascript"></script>
</body>
</html>
<html lang="en">
<head>
<base target="_top" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Chapter 3 - Memanggil Geojson dengan Javascript</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" />
<link
rel="stylesheet"
href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css" />
<link rel="stylesheet" href="css/geojson.css" />
<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script>
</head>
<body>
<div id="map"></div>

<script src="js/lib.js" type="text/javascript"></script>
<script src="js/geojson.js" type="text/javascript"></script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const map = L.map('map').setView([-0.0353948,109.2615099], 23);
const map = L.map('map').setView([-0.9120703,119.8713537], 23);

const tiles = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 10,
Expand All @@ -9,6 +9,6 @@ const tiles = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {



L.geoJSON(getGeoJSON("pontianak/pontianak.json"), {
L.geoJSON(getGeoJSON("palu/palu.geojson"), {
onEachFeature: onEachFeature
}).addTo(map);
File renamed without changes.
1 change: 1 addition & 0 deletions osm/java/bandung barat.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion osm/kalimantan/pontianak.json

This file was deleted.