{"id":20762020,"url":"https://github.com/donkeyclip/motorcortex-ol","last_synced_at":"2026-03-11T03:31:04.299Z","repository":{"id":37468860,"uuid":"165199131","full_name":"donkeyclip/motorcortex-ol","owner":"donkeyclip","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-01T02:00:29.000Z","size":64446,"stargazers_count":0,"open_issues_count":17,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-03-01T05:51:44.496Z","etag":null,"topics":["map","motorcortex","motorcortex-plugin","open-layers"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/donkeyclip.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-01-11T07:28:43.000Z","updated_at":"2022-04-01T08:48:05.000Z","dependencies_parsed_at":"2025-12-04T13:15:50.651Z","dependency_job_id":null,"html_url":"https://github.com/donkeyclip/motorcortex-ol","commit_stats":{"total_commits":600,"total_committers":14,"mean_commits":"42.857142857142854","dds":0.5666666666666667,"last_synced_commit":"8771b0b7fc791edbaaedd1369bd628f935ea470c"},"previous_names":["kissmybutton/motorcortex-googlemaps"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/donkeyclip/motorcortex-ol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-ol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-ol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-ol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-ol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donkeyclip","download_url":"https://codeload.github.com/donkeyclip/motorcortex-ol/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-ol/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30369379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"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":["map","motorcortex","motorcortex-plugin","open-layers"],"created_at":"2024-11-17T10:28:41.191Z","updated_at":"2026-03-11T03:31:04.280Z","avatar_url":"https://github.com/donkeyclip.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MotorCortex-Openlayers\n\n**Table of Contents**\n\n- [MotorCortex-Openlayers](#motorcortex-openlayers)\n  - [Demo](#demo)\n- [Intro / Features](#intro--features)\n- [Getting Started](#getting-started)\n  - [Installation](#installation)\n  - [Importing and Loading](#importing-and-loading)\n- [Creating Incidents](#creating-incidents)\n  - [Map Clip](#map-clip)\n  - [GoTo](#goto)\n- [Adding Incidents in your clip](#adding-incidents-in-your-clip)\n- [Contributing](#contributing)\n- [License](#license)\n- [Sponsored by](#sponsored-by)\n\n## Demo\n\n[Check it out here](https://donkeyclip.github.io/motorcortex-ol/demo/)\n\n# Intro / Features\nMotorCortex Openlayers takes the capabilities of [Openlayers](https://openlayers.org/) library of creating a dynamic map in any web page.\nThe library exposes a Map Clip with the name Clip which will initialize an Openlayer Map instance where you can add animation with the \"GoTo\" Incident.\n\nThis Plugin exposes two Incident:\n- Map Clip\n- GoTo\n\n# Getting Started\n\n## Installation\n```bash\n$ npm install @donkeyclip/motorcortex-ol\n# OR\n$ yarn add @donkeyclip/motorcortex-ol\n```\n## Importing and loading\n\n```javascript\nimport { loadPlugin } from \"@donkeyclip/motorcortex\";\nimport MapsDef from \"@donkeyclip/motorcortex-ol\";\nconst Maps = loadPlugin(MapsDef);\n```\n\n# Creating Incidents\n\n## Map Clip\n```javascript\nconst london = MapsDef.utils.fromLonLat([-0.12755, 51.507222]);\nconst bern = MapsDef.utils.fromLonLat([7.4458, 46.95]);\n\nconst clip = new Maps.Clip(\n  {\n    parameters: {\n      view: { center: london, zoom: 8 }\n    }\n  },\n  {\n    host: document.getElementById(\"clip\"),\n    containerParams: { width: \"1280px\", height: \"720px\" }\n  }\n);\n```\n### Map Clip Attrs\nMap Clip take as a parameter a `view` object. This object contains the starting point (`center`) and the `zoom` number.\nThe `center` value has the following structure: \n```javascript\ncenter: MapsDef.utils.fromLonLat([-0.12755, 51.507222])\n```\n\n## GoTo\n```javascript\nconst gotoBern = new Maps.GoTo(\n  {\n    animatedAttrs: {\n      goto: {\n        zoom: 3,\n        center: bern\n      }\n    }\n  },\n  { duration: 4000, selector: \"!#olmap\" }\n);\n```\n### GoTo Attrs \nGoto Incident take as an attribute a `goto` object.This object contains the ending point (`center`) and the `zoom` number.\n\n#### IMPORTANT\nAlong with the attributes, all `GoTo incidents` must take on their props the `selector` key with the value: `!#olmap`\n\n# Adding Incidents in your clip\n\n```javascript\nmapsClipName.addIncident(incidentGoToName,startTime);\n```\n\n# Contributing \n\nIn general, we follow the \"fork-and-pull\" Git workflow, so if you want to submit patches and additions you should follow the next steps:\n1.\t**Fork** the repo on GitHub\n2.\t**Clone** the project to your own machine\n3.\t**Commit** changes to your own branch\n4.\t**Push** your work back up to your fork\n5.\tSubmit a **Pull request** so that we can review your changes\n\n# License\n\n[MIT License](https://opensource.org/licenses/MIT)\n\n# Sponsored by\n[\u003cimg src=\"https://presskit.donkeyclip.com/logos/donkey%20clip%20logo.svg\" width=250\u003e\u003c/img\u003e](https://donkeyclip.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkeyclip%2Fmotorcortex-ol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonkeyclip%2Fmotorcortex-ol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkeyclip%2Fmotorcortex-ol/lists"}