{"id":18573044,"url":"https://github.com/buganini/leaflet-searchmenu","last_synced_at":"2025-07-01T16:08:05.767Z","repository":{"id":17973902,"uuid":"20973594","full_name":"buganini/leaflet-searchmenu","owner":"buganini","description":null,"archived":false,"fork":false,"pushed_at":"2014-06-19T18:50:46.000Z","size":168,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T23:12:30.945Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buganini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-18T18:37:46.000Z","updated_at":"2016-02-06T01:05:03.000Z","dependencies_parsed_at":"2022-07-26T20:19:02.310Z","dependency_job_id":null,"html_url":"https://github.com/buganini/leaflet-searchmenu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/buganini/leaflet-searchmenu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buganini%2Fleaflet-searchmenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buganini%2Fleaflet-searchmenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buganini%2Fleaflet-searchmenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buganini%2Fleaflet-searchmenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buganini","download_url":"https://codeload.github.com/buganini/leaflet-searchmenu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buganini%2Fleaflet-searchmenu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262996403,"owners_count":23396903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T23:07:55.812Z","updated_at":"2025-07-01T16:08:05.750Z","avatar_url":"https://github.com/buganini.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eleaflet-searchmenu\u003c/h1\u003e\n\nForked from https://github.com/naomap/leaflet-fusesearch\n\n\u003ch2\u003eUsage\u003c/h2\u003e\n\nCreate the control L.Control.SearchMenu and add it to the Map.\n\u003cpre\u003e\nvar searchCtrl = L.control.searchMenu({\n    search: function(string, returnFunc) {\n        returnFunc([\"id1\", \"id2\", \"id3\"]);\n    },\n    showResultFct: function() {\n        var name = L.DomUtil.create('b', null, container);\n        name.innerHTML = getName(result);\n        container.appendChild(L.DomUtil.create('br', null, container));\n        container.appendChild(document.createTextNode(getDesc(result)));\n    },\n    popup: function(result) {\n        getMarker(result).fire(\"click\");\n    }\n});\nsearchCtrl.addTo(map);\n\u003c/pre\u003e\n\n\u003ch2\u003eOptions\u003c/h2\u003e\n\nThe SearchMenu control can be created with the following options :\n\u003cul\u003e\n\u003cli\u003e\u003ccode\u003eposition\u003c/code\u003e : position of the control, the search pane shows on the matching side. Default \u003ccode\u003e'topright'\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003etitle\u003c/code\u003e : used for the control tooltip, default \u003ccode\u003e'Search'\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eplaceholder\u003c/code\u003e : used for the input placeholder, default \u003ccode\u003e'Search'\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003emaxResultLength\u003c/code\u003e : number of features displayed in the result list, default is null\n    and all features found by Fuse are displayed\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eshowInvisibleFeatures\u003c/code\u003e : display the matching features even if their layer is invisible, default true\u003c/li\u003e\n\n\u003ch2\u003eExample\u003c/h2\u003e\n\n\u003ca href=\"http://antology.me/vegan/\"\u003ehttp://antology.me/vegan/\u003c/a\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuganini%2Fleaflet-searchmenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuganini%2Fleaflet-searchmenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuganini%2Fleaflet-searchmenu/lists"}