小编Gau*_*nda的帖子

命名空间“google.maps”没有导出成员“MouseEvent”

我想将 Google Maps 与我的 Angular 项目集成。在试点版本中,我只是点击了这个链接https://angular-maps.com/guides/getting-started/。目前,我陷入了错误:

node_modules/@agm/core/lib/directives/map.d.ts:232:43 - error TS2694: Namespace 'google.maps' has no exported member 'MouseEvent'

232 mapDblClick: EventEmitter<google.maps.MouseEvent>;

我去了文件位置并得到了这个

    mapClick: EventEmitter<google.maps.MouseEvent | google.maps.IconMouseEvent>;
    /**
     * This event emitter gets emitted when the user right-clicks on the map (but not when they click
     * on a marker or infoWindow).
     */
    mapRightClick: EventEmitter<google.maps.MouseEvent>;
    /**
     * This event emitter gets emitted when the user double-clicks on the map (but not when they click
     * on a marker or infoWindow). …
Run Code Online (Sandbox Code Playgroud)

javascript google-maps-api-3 angular-google-maps angular

13
推荐指数
5
解决办法
9815
查看次数