Skip to content

Commit

Permalink
feat: add google map (#2272)
Browse files Browse the repository at this point in the history
  • Loading branch information
KipSong authored Jan 30, 2024
1 parent 56d800f commit 30548fc
Show file tree
Hide file tree
Showing 8 changed files with 632 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/demos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default [{
}
]

export const MapType = ['Map','GaodeMap','BaiduMap','MapLibre','TencentMap','Mapbox','TMap']
export const MapType = ['Map','GaodeMap','BaiduMap','MapLibre','TencentMap','Mapbox','TMap','GoogleMap']
export const InitMapOptions = {
map: 'Map',
renderer:'device',
Expand Down
1 change: 1 addition & 0 deletions packages/maps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@types/amap-js-api": "^1.4.6",
"@types/bmapgl": "^0.0.7",
"@types/gl-matrix": "^2.4.5",
"@types/google.maps": "^3.54.10",
"@types/mapbox-gl": "^1.11.2",
"@types/viewport-mercator-project": "^6.1.0",
"tmap-types-temporary": "0.1.4"
Expand Down
9 changes: 9 additions & 0 deletions packages/maps/src/gmap/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* eslint-disable */
import BaseMapWrapper from '../utils/BaseMapWrapper';
import GMapService from './map';

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

0 comments on commit 30548fc

Please sign in to comment.