{"action":"closed","issue":{"url":"https://api.github.com/repos/stefanocudini/leaflet-search/issues/45","labels_url":"https://api.github.com/repos/stefanocudini/leaflet-search/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/stefanocudini/leaflet-search/issues/45/comments","events_url":"https://api.github.com/repos/stefanocudini/leaflet-search/issues/45/events","html_url":"https://github.com/stefanocudini/leaflet-search/issues/45","id":40859909,"number":45,"title":"Searching a LayerGroup with multiple layers","user":{"login":"phobiac","id":1310082,"avatar_url":"https://avatars.githubusercontent.com/u/1310082?v=3","gravatar_id":"","url":"https://api.github.com/users/phobiac","html_url":"https://github.com/phobiac","followers_url":"https://api.github.com/users/phobiac/followers","following_url":"https://api.github.com/users/phobiac/following{/other_user}","gists_url":"https://api.github.com/users/phobiac/gists{/gist_id}","starred_url":"https://api.github.com/users/phobiac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phobiac/subscriptions","organizations_url":"https://api.github.com/users/phobiac/orgs","repos_url":"https://api.github.com/users/phobiac/repos","events_url":"https://api.github.com/users/phobiac/events{/privacy}","received_events_url":"https://api.github.com/users/phobiac/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stefanocudini/leaflet-search/labels/enhancement","name":"enhancement","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-08-21T23:02:26Z","updated_at":"2015-08-08T20:42:02Z","closed_at":"2015-08-08T20:42:02Z","body":"I have a function that adds markers to different layers based on a certain property. Then I combine them all into one larger LayerGroup. So something like\r\n\r\n````javascript\r\nvar firstMarkersLayer = L.layerGroup();\r\nvar secondMarkersLayer = L.layerGroup();\r\nvar thirdMarkersLayer = L.layerGroup();\r\n\r\nfunction that adds markers to the layers //this works fine\r\n\r\nvar allMarkersLayer = L.layerGroup([firstMarkersLayer, secondMarkersLayer, thirdMarkersLayer]);\r\n````\r\n\r\nleaflet-search doesn't appear to be able to search the allMarkersLayer group but will search any of the subgroups fine. Is it possible to have it search the subgroups, or to just define multiple groups for it to search?"}}