{"id":19439091,"url":"https://github.com/danwild/ol2-offline","last_synced_at":"2026-03-19T09:54:01.381Z","repository":{"id":78506482,"uuid":"100338684","full_name":"danwild/ol2-offline","owner":"danwild","description":"A simple example of using OpenLayers V2 with no network connection.","archived":false,"fork":false,"pushed_at":"2017-08-15T06:24:23.000Z","size":4014,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-19T10:20:14.871Z","etag":null,"topics":["openlayers2","qgis","tilesets"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/danwild.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":"2017-08-15T04:28:43.000Z","updated_at":"2024-02-14T09:08:42.000Z","dependencies_parsed_at":"2023-05-21T02:30:35.263Z","dependency_job_id":null,"html_url":"https://github.com/danwild/ol2-offline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danwild/ol2-offline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fol2-offline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fol2-offline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fol2-offline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fol2-offline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danwild","download_url":"https://codeload.github.com/danwild/ol2-offline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danwild%2Fol2-offline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30041288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T10:28:37.494Z","status":"ssl_error","status_checked_at":"2026-03-03T10:28:28.686Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["openlayers2","qgis","tilesets"],"created_at":"2024-11-10T15:21:14.827Z","updated_at":"2026-03-03T10:34:03.415Z","avatar_url":"https://github.com/danwild.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ol2-offline\nA simple example of using OpenLayers V2 with no network connection.\n\n![Screenshot](/screenshots/offline.png?raw=true)\n\nThe hard part (for me) was creating an XYZ tileset... but:\n\n**Hot tip:** use the awesome [QTiles](http://www.qgistutorials.com/en/docs/creating_basemaps_with_qtiles.html) plugin \nfor QGIS to easily build tiles sets from raster layers, aka GeoTiffs.\n\nOpenLayers v2 [docs are here](http://dev.openlayers.org/apidocs/files/OpenLayers/Map-js.html), but it's essentially just:\n\n```javascript\nvar myTilesPath = 'qtiles/bright-earth-tiles/${z}/${x}/${y}.png';\nvar options = {\n\tprojection: \"EPSG:3857\",\n\tcenter: center,\n\tzoom: 4,\n\tlayers: [\n\t\tnew OpenLayers.Layer.OSM(\"Local Tiles\", myTilesPath)\n\t]\n};\nvar map = new OpenLayers.Map(\"map\", options);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanwild%2Fol2-offline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanwild%2Fol2-offline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanwild%2Fol2-offline/lists"}