Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions packages/maps/src/amap-next/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,6 @@ export default class AMapService extends BaseMap<AMap.Map> {
];
}

public getMapContainer() {
return this.mapContainer;
}

public getMapCanvasContainer(): HTMLElement {
return this.map.getContainer()?.getElementsByClassName('amap-maps')[0] as HTMLElement;
}
Expand Down
8 changes: 0 additions & 8 deletions packages/maps/src/gmap/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,6 @@ export default class GMapService extends BaseMap<any> {
}
}

public onCameraChanged(callback: (viewport: IViewport) => void): void {
this.cameraChangedCallback = callback;
}

private styleObserver: MutationObserver | null = null;

public addMarkerContainer(): void {
Expand Down Expand Up @@ -440,10 +436,6 @@ export default class GMapService extends BaseMap<any> {
];
}

public setBgColor(color: string): void {
this.bgColor = color;
}

public setMapStyle(style: any): void {
// Google Maps 使用 setOptions 设置地图样式
if (typeof style === 'string') {
Expand Down
7 changes: 0 additions & 7 deletions packages/maps/src/tdtmap/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ export default class TdtMapService extends BaseMap<any> {
return this.markerContainer;
}

public onCameraChanged(callback: (viewport: IViewport) => void): void {
this.cameraChangedCallback = callback;
}
private resize(ev: any) {
this.sceneContainer.style.width = ev.newSize.x + 'px';
this.sceneContainer.style.height = ev.newSize.y + 'px';
Expand Down Expand Up @@ -300,10 +297,6 @@ export default class TdtMapService extends BaseMap<any> {
}
}

public once(type: string, handler: (...args: any[]) => void): void {
throw new Error('Method not implemented.');
}

// get dom

public getMapContainer(): HTMLElement {
Expand Down
4 changes: 0 additions & 4 deletions packages/maps/src/tmap/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,6 @@ export default class TMapService extends BaseMapService<TMap.Map> {
}
}

public once(): void {
throw new Error('Method not implemented.');
}

// get dom
public getContainer(): HTMLElement | null {
return this.map.getContainer();
Expand Down
Loading