Skip to content

Commit 2244cb8

Browse files
committed
Undo format
1 parent 9c75792 commit 2244cb8

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

map.js

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ async function initMap() {
163163
zakelijkeMededeling = xmlDoc.getElementsByTagName("zakelijke-mededeling-tekst");
164164
return (
165165
zakelijkeMededeling.length === 0
166-
? []
167-
: zakelijkeMededeling[0].querySelectorAll("al,tussenkop") // Tussenkop is required for Den Haag https://repository.overheid.nl/frbr/officielepublicaties/gmb/2023/gmb-2023-78971/1/xml/gmb-2023-78971.xml
166+
? []
167+
: zakelijkeMededeling[0].querySelectorAll("al,tussenkop") // Tussenkop is required for Den Haag https://repository.overheid.nl/frbr/officielepublicaties/gmb/2023/gmb-2023-78971/1/xml/gmb-2023-78971.xml
168168
);
169169
}
170170

@@ -368,7 +368,7 @@ async function initMap() {
368368

369369
const alineas = getAlineas(responseXml);
370370
const maxLooptijd = (6 * 7) + 1; // 6 weken de tijd om bezwaar te maken
371-
const dateFormatOptions = { "weekday": "long", "year": "numeric", "month": "long", "day": "numeric" };
371+
const dateFormatOptions = {"weekday": "long", "year": "numeric", "month": "long", "day": "numeric"};
372372
let datumBekendgemaakt; // Datum verzonden aan belanghebbende(n)
373373
let looptijd;
374374
let resterendAantalDagenBezwaartermijn;
@@ -390,8 +390,8 @@ async function initMap() {
390390
resterendAantalDagenBezwaartermijn = maxLooptijd - looptijd;
391391
textToShow = "Gepubliceerd: " + publication.date.toLocaleDateString("nl-NL", dateFormatOptions) + ".<br />Bekendgemaakt aan belanghebbende: " + datumBekendgemaakt.date.toLocaleDateString("nl-NL", dateFormatOptions) + ".<br />" + (
392392
resterendAantalDagenBezwaartermijn > 0
393-
? "Resterend aantal dagen voor bezwaar: " + resterendAantalDagenBezwaartermijn + "."
394-
: "<b>Geen bezwaar meer mogelijk.</b>"
393+
? "Resterend aantal dagen voor bezwaar: " + resterendAantalDagenBezwaartermijn + "."
394+
: "<b>Geen bezwaar meer mogelijk.</b>"
395395
) + "<br /><br />";
396396
}
397397
break;
@@ -499,12 +499,12 @@ async function initMap() {
499499
*/
500500
function createMapsControlPeriods() {
501501

502-
/**
503-
* Creates an option element with the specified value. Period 14d is selected by default.
504-
* @param {string} value The value of the option.
505-
* @param {string} displayValue The value of the option to display.
506-
* @return {!HTMLOptionElement} The created option element.
507-
*/
502+
/**
503+
* Creates an option element with the specified value. Period 14d is selected by default.
504+
* @param {string} value The value of the option.
505+
* @param {string} displayValue The value of the option to display.
506+
* @return {!HTMLOptionElement} The created option element.
507+
*/
508508
function createOptionEx(value, displayValue) {
509509
return createOption(value, displayValue, value === "14d");
510510
}
@@ -736,14 +736,14 @@ async function initMap() {
736736
*/
737737
function isMarkerVisible(age, periodToShow) {
738738
switch (periodToShow) {
739-
case "3d":
740-
return age <= 3;
741-
case "7d":
742-
return age <= 7;
743-
case "14d":
744-
return age <= 14;
745-
default:
746-
return true;
739+
case "3d":
740+
return age <= 3;
741+
case "7d":
742+
return age <= 7;
743+
case "14d":
744+
return age <= 14;
745+
default:
746+
return true;
747747
}
748748
}
749749

@@ -836,8 +836,8 @@ async function initMap() {
836836
const marker = new AdvancedMarkerElement({
837837
"map": (
838838
isMarkerVisible(age, periodToShow)
839-
? appState.map
840-
: null
839+
? appState.map
840+
: null
841841
),
842842
"position": position,
843843
"content": createMarkerIcon("img/" + iconName + ".png"),
@@ -982,8 +982,8 @@ async function initMap() {
982982
const marker = new AdvancedMarkerElement({
983983
"map": (
984984
municipalityName === appState.activeMunicipality
985-
? null
986-
: appState.map
985+
? null
986+
: appState.map
987987
),
988988
"position": municipalityObject.center,
989989
"content": createMarkerIcon("img/gemeente.png", municipalityName),
@@ -1213,8 +1213,8 @@ async function initMap() {
12131213
function addLeadingZero(n) {
12141214
return (
12151215
n > 9
1216-
? String(n)
1217-
: "0" + n
1216+
? String(n)
1217+
: "0" + n
12181218
);
12191219
}
12201220

@@ -1370,20 +1370,20 @@ async function initMap() {
13701370
// Sometimes multiple subjects, when both bouwvergunning and omgevingsvergunning are requested
13711371
// Used for matching, so trim and lowercase
13721372
Array.isArray(inputRecord.recordData.gzd.originalData.meta.owmsmantel.subject)
1373-
? inputRecord.recordData.gzd.originalData.meta.owmsmantel.subject[0].$.trim().toLowerCase()
1374-
: inputRecord.recordData.gzd.originalData.meta.owmsmantel.subject.$.trim().toLowerCase()
1373+
? inputRecord.recordData.gzd.originalData.meta.owmsmantel.subject[0].$.trim().toLowerCase()
1374+
: inputRecord.recordData.gzd.originalData.meta.owmsmantel.subject.$.trim().toLowerCase()
13751375
),
13761376
// Example: "Besluit apv vergunning Verleend Overtoom 10-H"
13771377
"title": (
13781378
inputRecord.recordData.gzd.originalData.meta.owmskern.hasOwnProperty("title")
1379-
? inputRecord.recordData.gzd.originalData.meta.owmskern.title.trim()
1380-
: "Vergunning " + inputRecord.recordData.gzd.originalData.meta.tpmeta.straatnaam
1379+
? inputRecord.recordData.gzd.originalData.meta.owmskern.title.trim()
1380+
: "Vergunning " + inputRecord.recordData.gzd.originalData.meta.tpmeta.straatnaam
13811381
),
13821382
// Example: "TVM 2 vakken - Overtoom 10-12 13 februari 2023, Overtoom 10-H"
13831383
"description": (
13841384
typeof inputRecord.recordData.gzd.originalData.meta.owmsmantel.description === "string"
1385-
? inputRecord.recordData.gzd.originalData.meta.owmsmantel.description.trim()
1386-
: inputRecord.recordData.gzd.originalData.meta.owmsmantel.description.toString() // Example: https://repository.overheid.nl/frbr/officielepublicaties/gmb/2023/gmb-2023-366976/1/xml/gmb-2023-366976.xml
1385+
? inputRecord.recordData.gzd.originalData.meta.owmsmantel.description.trim()
1386+
: inputRecord.recordData.gzd.originalData.meta.owmsmantel.description.toString() // Example: https://repository.overheid.nl/frbr/officielepublicaties/gmb/2023/gmb-2023-366976/1/xml/gmb-2023-366976.xml
13871387
)
13881388
};
13891389
if (Array.isArray(inputRecord.recordData.gzd.originalData.meta.tpmeta.locatiepunt)) {
@@ -1451,7 +1451,7 @@ async function initMap() {
14511451
const host = "https://basgroot.github.io";
14521452
const url = host + path;
14531453
console.log("Loading file " + url + "..");
1454-
fetch(url, { "method": "GET" }).then(function (response) {
1454+
fetch(url, {"method": "GET"}).then(function (response) {
14551455
if (response.ok) {
14561456
response.json().then(callback);
14571457
} else {
@@ -1470,8 +1470,8 @@ async function initMap() {
14701470
function loadHistory(period, isNewRequest) {
14711471
const lookupMunicipality = (
14721472
appState.municipalities[appState.activeMunicipality].hasOwnProperty("lookupName")
1473-
? appState.municipalities[appState.activeMunicipality].lookupName
1474-
: appState.activeMunicipality
1473+
? appState.municipalities[appState.activeMunicipality].lookupName
1474+
: appState.activeMunicipality
14751475
);
14761476
const periodArray = period.split("-");
14771477
if (periodArray.length !== 2) {
@@ -1527,8 +1527,8 @@ async function initMap() {
15271527
function loadDataForMunicipality(municipality, startRecord) {
15281528
const lookupMunicipality = (
15291529
appState.municipalities[municipality].hasOwnProperty("lookupName")
1530-
? appState.municipalities[municipality].lookupName
1531-
: municipality
1530+
? appState.municipalities[municipality].lookupName
1531+
: municipality
15321532
);
15331533
setLoadingIndicatorVisibility("show");
15341534
fetch(

0 commit comments

Comments
 (0)