Skip to content

Commit

Permalink
typo #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Eccenux committed Oct 26, 2022
1 parent 085b3b5 commit 0e5d934
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kml-on-ol.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 0e5d934

Please sign in to comment.