X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/0224e5348603ae8927c61acca5f41620e9e66dd9..b263323fe46728f594239819b3153706b449ce61:/src/assets/js/base.js diff --git a/src/assets/js/base.js b/src/assets/js/base.js index d72fc79..02c228a 100644 --- a/src/assets/js/base.js +++ b/src/assets/js/base.js @@ -10,7 +10,7 @@ function get_config_value(str, default_val) { return (typeof Nominatim_Config[str] !== 'undefined' ? Nominatim_Config[str] : default_val); } -function parse_and_normalize_geojson_string(raw_string){ +function parse_and_normalize_geojson_string(part){ // normalize places the geometry into a featurecollection, similar to // https://github.com/mapbox/geojson-normalize var parsed_geojson = { @@ -18,7 +18,7 @@ function parse_and_normalize_geojson_string(raw_string){ features: [ { type: "Feature", - geometry: JSON.parse(raw_string), + geometry: part, properties: {} } ]