I wish to load GeoJSON with Leaflet Search Control & display data with PopUp once there's search result. GeoJSON data should disable on Load or Unchecked for that layer.
[Updates] I want to make the GEOJSON data to be disabled on load but when the user search, it will show the result and view to the location on that selected location and the rest of the data should be turn off.
I realised that when I did not use
map.AddControl(searchControl); the GEOJSON will be off loaded but the user can't perform search.