Problem:
current code fails on leaflet 1.7+ when you try to search more than once with error leaflet-src.js:69 Uncaught (in promise) TypeError: Cannot create property '_leaflet_id' on string '582' because now leaflet doesn't support number-like strings. It was missed since TypeScript was suppressed here.
Problem: current code fails on leaflet 1.7+ when you try to search more than once with error
leaflet-src.js:69 Uncaught (in promise) TypeError: Cannot create property '_leaflet_id' on string '582'
because now leaflet doesn't support number-like strings. It was missed since TypeScript was suppressed here.Proposed changes:
getLayers
function instead of a private field