I am trying to perform queries with esri leaflet and show the resulting polygon features with their appropriate popups by default (instead of having users click on the feature highlighted in order to open said popups). I have tried using the following lines, after the setting up the query parameters, with no luck:
map.addLayer(popup1); // where popup1 is a variable holding onEachFeature info popup1.addTo(map); // doesn't work either map.openPopup(popup1); // nothing
Note that the feature being queried (only one at at time) does show up fine, and clicking on it brings up the popups as expected. I just need these popups to be enabled by default, so users can close them if they want.