google-react-maps:一种使用React的Google Maps API的新方法

时间:2021-05-14 13:29:36
【文件属性】:
文件名称:google-react-maps:一种使用React的Google Maps API的新方法
文件大小:3.1MB
文件格式:ZIP
更新时间:2021-05-14 13:29:36
JavaScript 谷歌React地图 版本1.1.31 一种使用React的Google Maps API的新方法。 要安装npm install google-react-maps 您可以导入的内容: import { Map , KmlLayer , DataLayer , Feature , InfoWindow , CustomOverlay , Marker , MapControl , SearchBox } from 'google-react-maps' ; 用法 使用地图非常简单。 通常,您会这样设置: import React from 'react' ; import PropTypes from 'prop-types' ; class App extends React . Component { render ( ) {

网友评论