{"id":20462404,"url":"https://github.com/lzxue/streamlit-l7","last_synced_at":"2026-04-20T07:05:08.035Z","repository":{"id":213319751,"uuid":"733535152","full_name":"lzxue/streamlit-l7","owner":"lzxue","description":"l7 for streamlit-l7","archived":false,"fork":false,"pushed_at":"2023-12-26T05:16:17.000Z","size":21674,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-12T17:45:19.627Z","etag":null,"topics":["gis","map","streamlit-components","visualization"],"latest_commit_sha":null,"homepage":"https://l7maps.streamlit.app/","language":"Python","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/lzxue.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-19T14:45:37.000Z","updated_at":"2026-01-27T20:58:40.000Z","dependencies_parsed_at":"2023-12-19T21:09:11.945Z","dependency_job_id":"dfa1fd52-89fd-4a57-b62c-9adc1d04ea8c","html_url":"https://github.com/lzxue/streamlit-l7","commit_stats":null,"previous_names":["lzxue/streamlit-l7"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lzxue/streamlit-l7","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzxue%2Fstreamlit-l7","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzxue%2Fstreamlit-l7/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzxue%2Fstreamlit-l7/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzxue%2Fstreamlit-l7/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lzxue","download_url":"https://codeload.github.com/lzxue/streamlit-l7/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzxue%2Fstreamlit-l7/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32036803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["gis","map","streamlit-components","visualization"],"created_at":"2024-11-15T12:35:36.776Z","updated_at":"2026-04-20T07:05:08.020Z","avatar_url":"https://github.com/lzxue.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cb\u003estreamlit L7\u003c/b\u003e\n\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[L7](https://github.com/antvis/L7) is a  Large-scale WebGL-powered Geospatial data visualization analysis framework. [Live Demo](https://l7maps.streamlit.app/)\n\n\n\n\u003c/div\u003e\n\n\n## Installation\n\n```\npip install streamlit-L7 \n```\n\n\n## Usage\n\n```py\nimport streamlit as st\nfrom streamlit_L7 import L7\n\noptions = {\n        \"mapType\": 'Map',\n        \"layers\": [\n            {\n                \"type\": 'raster',\n                \"source\": {\n                    \"data\": 'https://tiles{1-3}.geovisearth.com/base/v1/ter/{z}/{x}/{y}?format=webp\u0026tmsIds=w\u0026token=b2a0cfc132cd60b61391b9dd63c15711eadb9b38a9943e3f98160d5710aef788',\n                    \"parser\": {\"type\": 'rasterTile', \"tileSize\": 256, \"zoomOffset\": 0},\n                },\n            },\n            {\n                \"type\": 'raster',\n                \"source\": {\n                    \"data\": 'https://tiles{1-3}.geovisearth.com/base/v1/cat/{z}/{x}/{y}?format=png\u0026tmsIds=w\u0026token=b2a0cfc132cd60b61391b9dd63c15711eadb9b38a9943e3f98160d5710aef788',\n                    \"parser\": {\"type\": 'rasterTile', \"tileSize\": 256, \"zoomOffset\": 1},\n                },\n            },\n            {\n                \"type\": 'choropleth',\n                \"autoFit\": True,\n                \"source\": {\n                    \"data\": {\n                        \"type\": \"FeatureCollection\",\n                        \"features\": [\n                            {\n                            \"type\": \"Feature\",\n                            \"properties\": {\n                                \"name\": \"矩形\"\n                            },\n                            \"geometry\": {\n                                \"type\": \"Polygon\",\n                                \"coordinates\": [\n                                [\n                                    [120.554285, 30.145225],\n                                    [120.554285, 30.482327],\n                                    [120.865317, 30.482327],\n                                    [120.865317, 30.145225],\n                                    [120.554285, 30.145225]\n                                ]\n                                ]\n                            }\n                            },\n                            {\n                            \"type\": \"Feature\",\n                            \"properties\": {\"name\":\"多边形\"},\n                            \"geometry\": {\n                                \"type\": \"Polygon\",\n                                \"coordinates\": [\n                                [\n                                    [120.016222, 30.382493],\n                                    [120.270497, 30.396202],\n                                    [120.263686, 30.204106],\n                                    [120.032115, 30.213916],\n                                    [120.016222, 30.382493]\n                                ]\n                                ]\n                            }\n                            }\n                        ]\n                     },\n\n\n                },\n                \"fillColor\": {\n                    \"field\": 'name',\n                    \"value\": ['#fc8d59','#ffffbf','#91bfdb'],\n                },\n                \"opacity\": 0.8,\n                \"strokeColor\": 'blue',\n                \"lineWidth\": 1,\n                \"state\": {\n                    \"active\": { \"strokeColor\": 'green', \"lineWidth\": 1.5, \"lineOpacity\": 0.8 },\n                    \"select\": { \"strokeColor\": 'red', \"lineWidth\": 1.5, \"lineOpacity\": 0.8 },\n                },\n                \"label\": {\n                    \"field\": 'name',\n                    \"visible\": True,\n                    \"style\": { \"fill\": 'blue', \"fontSize\": 12, \"stroke\": '#fff', \"strokeWidth\": 2 },\n                },\n            },\n        ],\n        \"controls\": [\n           {\n            \"type\": 'zoom',\n           },{\n             \"type\": 'scale',\n           },{\n              \"type\": 'fullscreen'\n           }\n        ],\n    }\n\nL7(options=options, style=None, key=\"streamlit_L7\")\n\n```\n\n\n## API\n\nNow, There is only one API for `streamlit-L7`, named `L7`, see the `options` in [L7 React component API](https://larkmap.antv.antgroup.com/components/lark-map).\n\n| Property | Description                                                                                                     | Type                  | Default |\n| -------- | --------------------------------------------------------------------------------------------------------------- | --------------------- | ------- |\n| options  | the [options](https://larkmap.antv.antgroup.com/components/lark-map) for the visualization, say `chart.options(options)` | `L7options` \\| `null` | -       |\n| style    | the style of the container                                                                                      | `CSSProperties`       | -       |\n\n\n## Development\n\n- Build frontend code by running `npm run build` in fold `streamlit_L7/frontend`.\n- Run the example by running `streamlit run app.py` in root dir.\n\n## publish\n\n- Build frontend code by running `npm run build` in fold `streamlit_L7/frontend`.\n-  Build python `python setup.py sdist bdist_wheel`\n-  publish `python -m twine upload  dist/*`\n\n## License\n\nMIT@[lzxue](https://github.com/lzxue).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flzxue%2Fstreamlit-l7","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flzxue%2Fstreamlit-l7","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flzxue%2Fstreamlit-l7/lists"}