Fix bug with search
invalidateOptionsMenu was called way too often because setLoadingState would fire on every console message
This commit is contained in:
@ -257,6 +257,7 @@ addHook('search', function(query) {
|
||||
if(!isNaN(ll[0]) && !isNaN(ll[1])) {
|
||||
query.addResult({
|
||||
title: query.term,
|
||||
description: 'geo coordinates',
|
||||
position: L.latLng(parseFloat(ll[0]), parseFloat(ll[1])),
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user