From 0e5d9340e0595678023e2a97132261412fd95d43 Mon Sep 17 00:00:00 2001 From: Nux Date: Thu, 27 Oct 2022 00:39:15 +0200 Subject: [PATCH] typo #10 --- kml-on-ol.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kml-on-ol.php b/kml-on-ol.php index 50d1043..cf700a0 100644 --- a/kml-on-ol.php +++ b/kml-on-ol.php @@ -351,13 +351,14 @@ function init() var apiPath = isWikidata ? '/osmjson/test.php' : '/osmjson/getGeoJSON.php'; var jsonUrl = new URL(apiPath, location.href); jsonUrl.searchParams.append('lang', lang); - jsonUrl.searchParams.append('title', urlData.searchParams.get('title')); + jsonUrl.searchParams.append('article', urlData.searchParams.get('title')); if (!isWikidata) { var action = urlData.searchParams.get('action'); if (action === 'purge') { jsonUrl.searchParams.append('action', action); } } + console.log('jsonUrl: ', jsonUrl.toString()); OpenLayers.Request.GET({ url: jsonUrl.toString(),