{"id":13497458,"url":"https://github.com/leftstick/angular2-baidu-map","last_synced_at":"2025-04-09T21:14:37.355Z","repository":{"id":5389957,"uuid":"53027172","full_name":"leftstick/angular2-baidu-map","owner":"leftstick","description":"Angular2 component for Baidu map","archived":false,"fork":false,"pushed_at":"2023-01-06T01:54:42.000Z","size":10395,"stargazers_count":137,"open_issues_count":31,"forks_count":53,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-09T21:14:30.628Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://leftstick.github.io/angular2-baidu-map","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leftstick.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":"2016-03-03T06:35:10.000Z","updated_at":"2024-12-27T06:49:33.000Z","dependencies_parsed_at":"2023-01-13T13:31:29.718Z","dependency_job_id":null,"html_url":"https://github.com/leftstick/angular2-baidu-map","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leftstick%2Fangular2-baidu-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leftstick%2Fangular2-baidu-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leftstick%2Fangular2-baidu-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leftstick%2Fangular2-baidu-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leftstick","download_url":"https://codeload.github.com/leftstick/angular2-baidu-map/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248111972,"owners_count":21049578,"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-07-31T20:00:31.210Z","updated_at":"2025-04-09T21:14:37.328Z","avatar_url":"https://github.com/leftstick.png","language":"TypeScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# angular2-baidu-map\n\n[![NPM version][npm-image]][npm-url]\n![][david-url]\n![][dt-url]\n![][license-url]\n\nBaidu-Map module for Angular8\n\nRead full documentation here: [documentation](https://leftstick.github.io/angular2-baidu-map/)\n\nRead code example here: [example](https://github.com/leftstick/angular8-baidu-map-example)\n\n\u003e Be aware that it is a totally rewrite version, therefore, backward compatibility is not considered\n\n* If you are using the previous version `3.x`, [read it here](https://github.com/leftstick/angular2-baidu-map/tree/3.x)\n* If you are using the previous version `4.x`, [read it here](https://github.com/leftstick/angular2-baidu-map/tree/4.x)\n\n## Getting started\n\n```bash\nnpm install angular2-baidu-map\n```\n\n## Usage\n\n**app.module.ts**\n\n```typescript\nimport { BrowserModule } from '@angular/platform-browser'\nimport { NgModule } from '@angular/core'\n\nimport { AppComponent } from './app.component'\n\nimport { BaiduMapModule } from 'angular2-baidu-map'\n\n@NgModule({\n  declarations: [AppComponent],\n  imports: [BrowserModule, BaiduMapModule.forRoot({ ak: 'your ak' })],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule {}\n```\n\n**app.component.ts**\n\n```typescript\nimport { Component } from '@angular/core'\n\nimport { MapOptions } from 'angular2-baidu-map'\n\n@Component({\n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  styleUrls: []\n})\nexport class AppComponent {\n  options: MapOptions\n\n  constructor() {\n    this.options = {\n      centerAndZoom: {\n        lat: 39.920116,\n        lng: 116.403703,\n        zoom: 16\n      },\n      enableKeyboard: true\n    }\n  }\n}\n```\n\n**app.component.html**\n\n```html\n\u003cbaidu-map [options]=\"options\" style=\"display: block; width: 550px; height: 350px;\"\u003e\u003c/baidu-map\u003e\n```\n\nFor more information, see [documentation](http://leftstick.github.io/angular2-baidu-map/)\n\n## LICENSE\n\n[GPL License](https://raw.githubusercontent.com/leftstick/angular2-baidu-map/master/LICENSE)\n\n[npm-url]: https://npmjs.org/package/angular2-baidu-map\n[npm-image]: https://img.shields.io/npm/v/angular2-baidu-map.svg\n[david-url]: https://david-dm.org/leftstick/angular2-baidu-map.png\n[dt-url]: https://img.shields.io/npm/dt/angular2-baidu-map.svg\n[license-url]: https://img.shields.io/npm/l/angular2-baidu-map.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleftstick%2Fangular2-baidu-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleftstick%2Fangular2-baidu-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleftstick%2Fangular2-baidu-map/lists"}