[search] show outline and icon from nominatim
This commit is contained in:
@ -274,8 +274,19 @@ addHook('search', function(query) {
|
||||
title: item.display_name,
|
||||
description: 'Type: ' + item.type,
|
||||
position: L.latLng(parseFloat(item.lat), parseFloat(item.lon)),
|
||||
icon: item.icon,
|
||||
};
|
||||
|
||||
if(item.geojson) {
|
||||
result.layer = L.geoJson(item.geojson, {
|
||||
clickable: false,
|
||||
color: 'red',
|
||||
opacity: 0.7,
|
||||
weight: 2,
|
||||
fill: false,
|
||||
});
|
||||
}
|
||||
|
||||
var b = item.boundingbox;
|
||||
if(b) {
|
||||
var southWest = new L.LatLng(b[0], b[2]),
|
||||
|
Reference in New Issue
Block a user