{"id":20058614,"url":"https://github.com/leaflet/leaflet.vectorgrid","last_synced_at":"2026-01-12T06:09:16.600Z","repository":{"id":41469400,"uuid":"53418430","full_name":"Leaflet/Leaflet.VectorGrid","owner":"Leaflet","description":"Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0","archived":false,"fork":false,"pushed_at":"2025-01-09T18:01:02.000Z","size":797,"stargazers_count":645,"open_issues_count":119,"forks_count":200,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-05-13T13:49:31.187Z","etag":null,"topics":["geojson","leaflet","protobuf-vector-tiles","topojson","vector-tiles"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Leaflet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2016-03-08T14:26:38.000Z","updated_at":"2025-05-13T07:44:01.000Z","dependencies_parsed_at":"2025-04-12T23:37:18.505Z","dependency_job_id":"2156fff8-1f0c-4777-81c6-179de3909f78","html_url":"https://github.com/Leaflet/Leaflet.VectorGrid","commit_stats":{"total_commits":129,"total_committers":23,"mean_commits":5.608695652173913,"dds":0.6666666666666667,"last_synced_commit":"0079d72add0e1bd5dcd4fac3b85248cb854755da"},"previous_names":["ivansanchez/leaflet.vectorgrid"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FLeaflet.VectorGrid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FLeaflet.VectorGrid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FLeaflet.VectorGrid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Leaflet%2FLeaflet.VectorGrid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Leaflet","download_url":"https://codeload.github.com/Leaflet/Leaflet.VectorGrid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254264766,"owners_count":22041793,"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":["geojson","leaflet","protobuf-vector-tiles","topojson","vector-tiles"],"created_at":"2024-11-13T13:02:25.283Z","updated_at":"2026-01-12T06:09:16.557Z","avatar_url":"https://github.com/Leaflet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# Leaflet.VectorGrid\n\n\nDisplay gridded vector data (sliced [GeoJSON](https://geojson.org/), [TopoJSON](https://github.com/mbostock/topojson/wiki) or [protobuf vector tiles](https://github.com/mapbox/vector-tile-spec)) in [Leaflet](https://www.leafletjs.com) 1.0.0\n\n\n## Demos\n\n|          |           |\n| ---      | ---       |\n| [`demo-geojson.html`](https://leaflet.github.io/Leaflet.VectorGrid/demo-geojson.html) | Sliced GeoJSON |\n| [`demo-topojson.html`](https://leaflet.github.io/Leaflet.VectorGrid/demo-topojson.html) | Sliced TopoJSON (sorry for the antimeridian mess, topojson-to-geojson seems to not handle it properly) |\n| [`demo-vectortiles.html`](https://leaflet.github.io/Leaflet.VectorGrid/demo-vectortiles.html) | Protobuf vector tiles: OpenMapTiles, MapBox, MapZen or even ESRI vector tiles |\n| [`demo-points.html`](https://leaflet.github.io/Leaflet.VectorGrid/demo-points.html) | Clickable points and lines |\n| [`demo-points-icons.html`](https://leaflet.github.io/Leaflet.VectorGrid/demo-points-icons.html) | Points as icons |\n\n\n## Using\n\nIf you use `npm`:\n```\n\tnpm install leaflet.vectorgrid\n```\n\nThat will make available two files: `dist/Leaflet.VectorGrid.js` and `dist/Leaflet.VectorGrid.bundled.js`.\n\nThe difference is that `dist/Leaflet.VectorGrid.bundled.js` includes all of `VectorGrid`'s dependencies:\n\n* [geojson-vt](https://github.com/mapbox/geojson-vt) (Under ISC license)\n* [pbf](https://github.com/mapbox/pbf) (Under BSD license)\n* [topojson](https://github.com/mbostock/topojson) (Under BSD license)\n* [vector-tile](https://github.com/mapbox/vector-tile-js) (Under BSD license)\n\n If you are adding these dependencies by yourself, use `dist/Leaflet.VectorGrid.js` instead.\n\nIf you don't want to deal with `npm` and local files, you can use `unpkg.com` instead:\n\n```\n\u003cscript src=\"https://unpkg.com/leaflet.vectorgrid@latest/dist/Leaflet.VectorGrid.bundled.js\"\u003e\u003c/script\u003e\n```\nor, with the same caveats about bundled dependencies:\n```\n\u003cscript src=\"https://unpkg.com/leaflet.vectorgrid@latest/dist/Leaflet.VectorGrid.js\"\u003e\u003c/script\u003e\n```\n\n## Docs\n\nThis plugin exposes two new classes:\n\n* `L.VectorGrid.Slicer` for displaying GeoJSON or TopoJSON data\n* `L.VectorGrid.Protobuf` for displaying vector tiles from an online tile server\n\nYou can find the API documentation, and the explanation about the styling, at:\n\nhttps://leaflet.github.io/Leaflet.VectorGrid/vectorgrid-api-docs.html\n\n## Dependencies\n\n`L.VectorGrid.Slicer` requires `geojson-vt`: the global variable `geojsonvt` must exist. If topojson data is used, then the `topojson` global variable must also exist.\n\n`L.VectorGrid.Protobuf` requires `vector-tile` and `pbf`: the global variables `VectorTile` and `Pbf` must exist.\n\nBy default, VectorGrid is built with those dependencies bundled.\n\n## Developing\n\nRun `npm install`.\n\n## TODO\n\n* Sub-panes for the tile renderers (to set the \"z-index\" of layers/features)\n * More `\u003cg\u003e`roups in SVG\n * Offscreen `\u003ccanvas\u003e`es in Canvas\n* `getBounds()` support for the slicer (inherit/extrapolate from geojson data)\n* Parser for mapbox-like vector stylesheets\n\n## Motivation\n\nBefore VectorGrid, loading vector tiles in Leaflet could only be done with the\nLeaflet.MapboxVectorTile or the Hoverboard plugin, but neither of those works with\nLeaflet 1.0.0 (or greater).\n\nVectorGrid leverages the GridLayer feature introduced in Leaflet 1.0.0.\n\n## Legalese\n\n----------------------------------------------------------------------------\n\n\"THE BEER-WARE LICENSE\":\n\u003civan@sanchezortega.es\u003e wrote this file. As long as you retain this notice you\ncan do whatever you want with this stuff. If we meet some day, and you think\nthis stuff is worth it, you can buy me a beer in return.\n\n----------------------------------------------------------------------------\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleaflet%2Fleaflet.vectorgrid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleaflet%2Fleaflet.vectorgrid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleaflet%2Fleaflet.vectorgrid/lists"}