-1

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.

Demo: https://jsfiddle.net/kyroskoh/n3sfz6r2/

[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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.