【发布时间】:2019-11-17 13:56:58
【问题描述】:
知道我正在使用 api react-google-maps,有没有办法从谷歌地图中删除浮雕/地貌?这是我尝试过的:
import { GoogleMap,withGoogleMap,withScriptjs,InfoWindow,Marker,GroundOverlay } from 'react-google-maps';
const GoogleMapsWrapper = withScriptjs(withGoogleMap(props => {
return <GoogleMap
{...props}
ref={props.onMapMounted}
defaultOptions={defaultOptions}>
>
<GroundOverlay
defaultUrl="https://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg"
defaultOpacity={.5}
/>
{props.children}
</GoogleMap>
}));
【问题讨论】:
标签: javascript reactjs typescript api google-maps