Skip to content

Commit

Permalink
feat(packages/maps): support tencent map (#1966)
Browse files Browse the repository at this point in the history
* feat(packages/maps): support tencent map

* fix: upgrade tencent types

---------

Co-authored-by: @thinkingGIS <lzx199065@gmail.com>
  • Loading branch information
Pureblackkk and lzxue authored Oct 28, 2023
1 parent 2503e75 commit 05f6815
Show file tree
Hide file tree
Showing 10 changed files with 667 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@
"stylelint-config-styled-components": "^0.1.1",
"stylelint-processor-styled-components": "^1.3.2",
"svg-inline-loader": "^0.8.0",
"tmap-types-temporary": "0.1.4",
"tokml": "^0.4.0",
"topojson": "^3.0.2",
"ts-jest": "^24.0.2",
Expand Down
2 changes: 2 additions & 0 deletions packages/maps/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import BaiduMap from './bmap/';
import Earth from './earth/';
import Map from './map/';
import Mapbox from './mapbox/';
import TencentMap from './tmap';
import { Version } from './version';
export * from './utils';
export {
Expand All @@ -15,4 +16,5 @@ export {
Map,
Earth,
BaiduMap,
TencentMap,
};
9 changes: 9 additions & 0 deletions packages/maps/src/tmap/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* eslint-disable */
import BaseMapWrapper from '../utils/BaseMapWrapper';
import TMapService from './map';

export default class TMapWrapper extends BaseMapWrapper<any> {
protected getServiceConstructor() {
return TMapService;
}
}
3 changes: 3 additions & 0 deletions packages/maps/src/tmap/logo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.tmap-contianer--hide-logo img[src*='mapapi.qq.com/web/jsapi/logo/logo_def.png'] {
display: none;
}
Loading

0 comments on commit 05f6815

Please sign in to comment.