{"id":17218473,"url":"https://github.com/perliedman/openlayers-tilejson","last_synced_at":"2025-03-25T14:26:54.648Z","repository":{"id":11409209,"uuid":"13858268","full_name":"perliedman/openlayers-tilejson","owner":"perliedman","description":"Create map or tile layer from TileJSON, with projection support","archived":false,"fork":false,"pushed_at":"2013-12-13T08:10:03.000Z","size":139,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T13:21:49.484Z","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":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perliedman.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":"2013-10-25T10:57:42.000Z","updated_at":"2023-04-15T14:50:22.000Z","dependencies_parsed_at":"2022-09-22T23:00:28.685Z","dependency_job_id":null,"html_url":"https://github.com/perliedman/openlayers-tilejson","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/perliedman%2Fopenlayers-tilejson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perliedman%2Fopenlayers-tilejson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perliedman%2Fopenlayers-tilejson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perliedman%2Fopenlayers-tilejson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perliedman","download_url":"https://codeload.github.com/perliedman/openlayers-tilejson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245479154,"owners_count":20622095,"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-10-15T03:46:55.032Z","updated_at":"2025-03-25T14:26:54.623Z","avatar_url":"https://github.com/perliedman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openlayers-tilejson\n\nopenlayers-tilejson adds support for the\n[TileJSON](https://github.com/mapbox/tilejson-spec) specification\nto the [OpenLayers](http://openlayers.org) map client.\n\nFor extra fun and possibility of future profit, openlayers-tilejson\nalso supports an\n[extension to the TileJSON specification](https://github.com/perliedman/TileJSON/tree/master/2.0.0),\nwhich allows other projections than spherical-mercator. This\nextension requires [Proj4js](http://trac.osgeo.org/proj4js/) as extra dependency.\n\n## Example\n\n```javascript\nvar osmTileJSON = {\n    \"tilejson\": \"2.0.0\",\n    \"name\": \"OpenStreetMap\",\n    \"description\": \"A free editable map of the whole world.\",\n    \"version\": \"1.0.0\",\n    \"attribution\": \"\u0026copy; OpenStreetMap contributors, CC-BY-SA\",\n    \"scheme\": \"xyz\",\n    \"tiles\": [\n        \"http://a.tile.openstreetmap.org/{z}/{x}/{y}.png\",\n        \"http://b.tile.openstreetmap.org/{z}/{x}/{y}.png\",\n        \"http://c.tile.openstreetmap.org/{z}/{x}/{y}.png\"\n    ],\n    \"minzoom\": 0,\n    \"maxzoom\": 18,\n    \"bounds\": [ -180, -85, 180, 85 ],\n    \"center\": [ 11.9, 57.7, 8 ]\n};\n\nvar map = OpenLayers.Layer.TileJSON.createMap('map', osmTileJSON);\n```\n\n## Limitations\n\nThis is, as everything else, a work in progress. Current known limitations are:\n\n * No support for UTFGrid interaction. Mostly because Leaflet does not currently support UTFGrid.\n * Only the first tile URL specified is used.\n * Bounds are currently hardcoded.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperliedman%2Fopenlayers-tilejson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperliedman%2Fopenlayers-tilejson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperliedman%2Fopenlayers-tilejson/lists"}