{"id":18069679,"url":"https://github.com/pnorman/openstreetmap-cartographic","last_synced_at":"2025-03-28T12:31:34.189Z","repository":{"id":66371349,"uuid":"262226282","full_name":"pnorman/openstreetmap-cartographic","owner":"pnorman","description":"A port of OpenStreetMap Carto to Mapbox GL for client-side rendering","archived":true,"fork":false,"pushed_at":"2021-01-24T05:46:22.000Z","size":161,"stargazers_count":58,"open_issues_count":10,"forks_count":4,"subscribers_count":12,"default_branch":"develop","last_synced_at":"2025-03-23T02:34:16.736Z","etag":null,"topics":["mapbox-gl","openstreetmap","vector-tiles"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pnorman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-05-08T04:25:11.000Z","updated_at":"2023-11-09T12:03:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d0253d4-efd3-4cf3-ae07-2dd781eacdc6","html_url":"https://github.com/pnorman/openstreetmap-cartographic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnorman%2Fopenstreetmap-cartographic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnorman%2Fopenstreetmap-cartographic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnorman%2Fopenstreetmap-cartographic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnorman%2Fopenstreetmap-cartographic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pnorman","download_url":"https://codeload.github.com/pnorman/openstreetmap-cartographic/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246030433,"owners_count":20712372,"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":["mapbox-gl","openstreetmap","vector-tiles"],"created_at":"2024-10-31T08:10:59.644Z","updated_at":"2025-03-28T12:31:34.184Z","avatar_url":"https://github.com/pnorman.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenStreetMap Cartographic\n\n## What is it?\n\nA port of OpenStreetMap Carto targeting client-side rendering with vector tiles.\n\n[A public demo is available](https://took.paulnorman.ca/build/mapbox-gl.html).\n\n## How is it different from previous work?\n\nPrevious work has [used tilelive](rory) which is a technical dead-end, used existing vector tile sets which didn't have the richness of OpenStreetMap Data that OpenStreetMap Carto shows, or has not been intended to be a continuation of the OpenStreetMap Carto project.\n\n## What do I need to run it?\n\n- PostgreSQL 9.6 + PostGIS. PostGIS 3.0 is **strongly** recommended.\n- OpenStreetMap data loaded in a database according to the [standard OpenStreetMap Carto](https://github.com/gravitystorm/openstreetmap-carto/blob/master/INSTALL.md#openstreetmap-data) instructions.\n- Python 3 and Tilekiln 0.0.6 or later\n\nInstall Tilekiln with\n```sh\npython3 -m venv venv\nsource venv/bin/activate\npip install tilekiln\n```\n\n## How do I get some vector tiles?\n\nInstall Tilekiln. Generate tiles with ``tilekiln-generate area -d gis vector.yaml tiles/``.\n\nYou can't generate for just a bounding box until [it is implemented in tilekiln](https://github.com/pnorman/tilekiln/issues/8) so it helps to have database CPU to throw at this.\n\nMake a TileJSON with information about the tiles with ``tilekiln-tilejson vector.yaml \"http://localhost:8080/tiles/{id}/{z}/{x}/{y}.mvt\" \u003e tiles/dev.json``\n\nServe up the tiles with ``./serve.py`` and you'll get a tilejson at ``http://localhost:8080/tiles/dev.json`` and the stylesheet at ``http://localhost:8080/openstreetmap-cartographic.json``. Load the stylesheet into something like [Fresco](https://fresco.gospatial.org/) for a better editing experience.\n\nIf you get fancy and aren't loading tiles from localhost, make sure to set your CORS headers and update the URLs.\n\n## Why pre-generate vector tiles?\n\nWe're targeting deploying on the scale of tile.openstreetmap.org and pre-generation makes sense there. It's also way easier operationally.\n\n## Legal\n\nThe code and cartography is licensed under CC0 as described in [LICENSE.txt](LICENSE.txt).\n\nOpenStreetMap is a trademark of the OpenStreetMap Foundation, and is used with their permission. This project is not endorsed by or affiliated with the OpenStreetMap Foundation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnorman%2Fopenstreetmap-cartographic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpnorman%2Fopenstreetmap-cartographic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnorman%2Fopenstreetmap-cartographic/lists"}