{"id":26606870,"url":"https://github.com/canmou/react-tmap","last_synced_at":"2025-04-09T20:33:17.382Z","repository":{"id":56765222,"uuid":"436281843","full_name":"canmou/react-tmap","owner":"canmou","description":"基于 React 封装的腾讯地图组件","archived":false,"fork":false,"pushed_at":"2022-08-19T02:50:35.000Z","size":2640,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T17:40:38.718Z","etag":null,"topics":["react","react-tmap","typescript","web"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/canmou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-08T14:42:47.000Z","updated_at":"2023-03-13T04:55:48.000Z","dependencies_parsed_at":"2022-08-16T02:10:46.238Z","dependency_job_id":null,"html_url":"https://github.com/canmou/react-tmap","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canmou%2Freact-tmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canmou%2Freact-tmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canmou%2Freact-tmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canmou%2Freact-tmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/canmou","download_url":"https://codeload.github.com/canmou/react-tmap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247644631,"owners_count":20972332,"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":["react","react-tmap","typescript","web"],"created_at":"2025-03-23T22:23:48.853Z","updated_at":"2025-04-09T20:33:17.360Z","avatar_url":"https://github.com/canmou.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr /\u003e\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/canmou/react-tmap\"\u003e\n    \u003cimg src=\"https://canmou.github.io/react-tmap/logo.svg\" height=\"80px\" alt=\"腾讯地图 React 组件 logo\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003ch3 align=\"center\"\u003e腾讯地图 React 组件\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@canmou/react-tmap\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/@canmou/react-tmap.svg?style=flat\" alt=\"Downloads\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://canmou.github.io/npm-unpkg/#/pkg/@canmou/react-tmap/file/README.md\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Open%20in-unpkg-blue\" alt=\"Open in unpkg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@canmou/react-tmap\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/@canmou/react-tmap.svg\" alt=\"npm version\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## 特性\n- 📚 自动加载腾讯地图SDK\n- ♻️ Typescript编写，集成腾讯地图的声明文件\n- ⚛️ 不依赖任何第三方组件\n- 📦 拆分多个包，按需使用\n\n## 安装\n### 集成所有的依赖包\n```\nnpm install @canmou/react-tmap --save\n\nnpm install @canmou/react-tmap-map @canmou/react-tmap-api-loader --save\n```\n\n## 容器组件\nPackage | Bundle size(gzip) | Version/unpkg\n----- | ----- | ----\n[`@canmou/react-tmap`](https://canmou.github.io/react-tmap/) 集成所有包 | [![bundle size](https://img.shields.io/bundlephobia/min/@canmou/react-tmap?color=3789D6\u0026label=)](https://bundlephobia.com/package/@canmou/react-tmap) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@canmou/react-tmap?color=green\u0026label=)](https://bundlephobia.com/package/@canmou/react-tmap) | [![npm version](https://img.shields.io/npm/v/@canmou/react-tmap.svg)](https://www.npmjs.com/package/@canmou/react-tmap) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://canmou.github.io/npm-unpkg/#/pkg/@canmou/react-tmap/file/README.md)\n[`@canmou/react-tmap-api-loader`](https://canmou.github.io/react-tmap/#/api-loader) 加载 SDK (必须) | [![bundle size](https://img.shields.io/bundlephobia/min/@canmou/react-tmap-api-loader?color=3789D6\u0026label=)](https://bundlephobia.com/package/@canmou/react-tmap-api-loader) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@canmou/react-tmap-api-loader?color=green\u0026label=)](https://bundlephobia.com/package/@canmmou/react-tmap-api-loader) | [![npm version](https://img.shields.io/npm/v/@canmou/react-tmap-api-loader.svg)](https://www.npmjs.com/package/@canmou/react-tmap-api-loader) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://canmou.github.io/npm-unpkg/#/pkg/@canmou/react-tmap-api-loader/file/README.md)\n[`@canmou/react-tmap-map`](https://canmou.github.io/react-tmap/#/map) 加载地图(容器) | [![bundle size](https://img.shields.io/bundlephobia/min/@canmou/react-tmap-map?color=3789D6\u0026label=)](https://bundlephobia.com/package/@canmou/react-tmap-map) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@canmou/react-tmap-map?color=green\u0026label=)](https://bundlephobia.com/package/@canmou/react-tmap-map) | [![npm version](https://img.shields.io/npm/v/@canmou/react-tmap-map.svg)](https://www.npmjs.com/package/@canmou/react-tmap-map) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://canmou.github.io/npm-unpkg/#/pkg/@canmou/react-tmap-map/file/README.md)\n\n## 开发\n```\nnpm install\ncd webisite\nnpm install \nnpm run start\n\n```\n### website里用于做文档实例，引入ant design，方面测试开发组件\n#### 先绑定相关的包到website目录\n```\ncd website\nnpm link @canmou/react-tmap-api-loader @canmou/react-tmap-map @canmou/react-tmap\n```\n\n####  地图使用的基本引入组件\n```\n\u003c!-- api-loader package npm link --\u003e\nnpm link @canmou/react-tmap-require-script @canmou/react-tmap-types\n```\n#### 地图类型文件引入\n```\n\u003c!-- map package npm link --\u003e\nnpm link @canmou/react-tmap-types\n```\n##  相关链接参考\n* 腾讯地图API\n* 腾讯地图示例\n* 思路主要来自于jaywcjlove的react-amap组件，重新构建了一套腾讯地图相关的组件\nhttps://github.com/uiwjs/react-amap\n\n\n## License\n\nLicensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanmou%2Freact-tmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanmou%2Freact-tmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanmou%2Freact-tmap/lists"}