{"id":13774248,"url":"https://github.com/geoblocks/ol-maplibre-layer","last_synced_at":"2025-10-09T22:17:10.932Z","repository":{"id":40301815,"uuid":"209275912","full_name":"geoblocks/ol-maplibre-layer","owner":"geoblocks","description":"Use a MapBox map as an OpenLayers layer","archived":false,"fork":false,"pushed_at":"2025-09-29T18:03:18.000Z","size":22144,"stargazers_count":53,"open_issues_count":15,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-29T20:22:23.496Z","etag":null,"topics":["maplibre","openlayers"],"latest_commit_sha":null,"homepage":"https://geoblocks.github.io/ol-maplibre-layer/demo.html","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geoblocks.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-09-18T09:58:45.000Z","updated_at":"2025-09-25T16:26:00.000Z","dependencies_parsed_at":"2024-01-14T07:26:39.007Z","dependency_job_id":"b4cef9ac-0e6f-4732-b6be-83de699ffdcc","html_url":"https://github.com/geoblocks/ol-maplibre-layer","commit_stats":{"total_commits":72,"total_committers":5,"mean_commits":14.4,"dds":"0.26388888888888884","last_synced_commit":"5851ea59eb1b6636ff15660a928653b7f7c3d5e1"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/geoblocks/ol-maplibre-layer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoblocks%2Fol-maplibre-layer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoblocks%2Fol-maplibre-layer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoblocks%2Fol-maplibre-layer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoblocks%2Fol-maplibre-layer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geoblocks","download_url":"https://codeload.github.com/geoblocks/ol-maplibre-layer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoblocks%2Fol-maplibre-layer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278450920,"owners_count":25988882,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"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":["maplibre","openlayers"],"created_at":"2024-08-03T17:01:25.015Z","updated_at":"2025-10-09T22:17:10.901Z","avatar_url":"https://github.com/geoblocks.png","language":"TypeScript","funding_links":[],"categories":["Layer Types Plugins"],"sub_categories":["JavaScript"],"readme":"# MapLibre OpenLayers layer\n\nRender a [MapLibre GL JS](https://maplibre.org/projects/#js) map as an [OpenLayers](https://openlayers.org/) layer.\n\n## Installation\n\n```shell\nnpm i @geoblocks/ol-maplibre-layer\n```\n\nOpenLayers and MapLibre GL JS are peer dependencies, so you need to install them too.\n\n```shell\nnpm i ol maplibre-gl\n```\n\n## Code example\n\n```js\nimport {MapLibreLayer} from '@geoblocks/ol-maplibre-layer';\n\nconst layer = new MapLibreLayer({\n  opacity: 0.7,\n  mapLibreOptions: {\n    style: 'https://www.example.com/path/to/style.json',\n  },\n});\n\n// ...\nmap.addLayer(layer);\n```\n\nAll the properties passed to the construction (except `mapLibreOptions`) are used to create the [OpenLayers layer](https://openlayers.org/en/latest/apidoc/module-ol_layer_Layer-Layer.html).\n`mapLibreOptions` is used to create the [MapLibre map](https://maplibre.org/maplibre-gl-js-docs/api/map/).\n\nThe MapLibreLayer exposes the underlying MapLibre map as public property, so you can use it to interact with the map.\n\n```js\nlayer.maplibreMap.setStyle('https://www.example.com/path/to/other/style.json');\n```\n\n## Online doc and demos\n\n- [Documentation](https://geoblocks.github.io/ol-maplibre-layer/api/);\n- [Demo](https://geoblocks.github.io/ol-maplibre-layer/demo.html);\n\n## Local development\n\nFor local development we use a few demos.\n\n```bash\nnpm install\nnpm run start\nopen http://localhost:1234\n```\n\n## Publish a new version to npm\n\nThe source is transpiled to standard ES modules and published on npm.\n\n```bash\n# update CHANGES.md\nnpm version patch\nnpm publish\ngit push --tags origin master\nnpm run gh-pages\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeoblocks%2Fol-maplibre-layer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeoblocks%2Fol-maplibre-layer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeoblocks%2Fol-maplibre-layer/lists"}