我正在展示一个带有有效密钥的 Google Maps React 的基本示例,但不是向我展示地图,而是向我展示了一个文本,上面写着“正在加载地图......”
import {GoogleApiWrapper, Map, MapProps} from 'google-maps-react';
import * as React from 'react'
export class MapContainer extends React.Component<MapProps> {
public render() {
return (
<Map
google={this.props.google}
centerAroundCurrentLocation={true}
zoom={20}
/>
);
}
}
export default GoogleApiWrapper({
apiKey: (API_KEY)
})(MapContainer)
控制台日志和任何内容都没有错误。