- if ( nominatim_result.outlinestring ){
-
- var geojson_layer = L.geoJson(null, {
- // http://leafletjs.com/reference.html#geojson-style
- style: function(feature) { return { clickable: false, color: 'blue' }; }
- });
- omnivore.wkt.parse(nominatim_result.outlinestring,null,geojson_layer);
- layerGroup.addLayer(geojson_layer);
+ if ( nominatim_result.asgeojson ){
+
+ var geojson_layer = L.geoJson(
+ parse_and_normalize_geojson_string(nominatim_result.asgeojson),
+ {
+ // http://leafletjs.com/reference-1.0.3.html#path-option
+ style: function(feature) {
+ return { interactive: false, color: 'blue' };
+ }
+ }
+ );
+ map.addLayer(geojson_layer);